Calculation of Actual Distance