Altitude gain calculation and test