Slope and Altitude Calculation