how to calculate the maximum height of a rocket

In particular, the final velocity of the rocket after it has used all of its fuel is window.jQuery || document.write('