Calculation of the effective height of the Earth's shadow