How to calculate the external wall area

How to calculate the external wall area

The length of external wall is calculated according to the center line
How to calculate the height of the external wall: the height of flat roof and sloping roof are different
Deducting the occupied area of doors and windows