Calculates the height of a model rocket given some inputs