Calculation of Altitude and Base Length