where
- \(d\) is the vertical distance,
- \((x_1, y_1) \) are the coordinates of the starting point, and
- \((x_2, y_2)\) are the coordinates of the ending point.