Calculation of the roof pitch