Calculating Time of Flight and Range