Equation For Horizontal Distance