h is the maximum height and R is the range for horizontal motion