Calculating Maximum Height and Time of Flight