Calculated the distance here