Formulas for the area calculations