foot of altitude calculation