What is the formula for the maximum height of a projectile?

What is the formula for the maximum height of a projectile?

Explanation

Maximum height is reached when vertical velocity becomes zero.  

Using the kinematic equation:  

v² = u² - 2gh, with final v = 0,  

h = (vi² * sin²θ) / 2g.