Calculation of Potential Energy at Maximum y-position