correct form of altitude equations