結果 : how to calculate horizontal distance