Calculation of Straight Line Distance