the formula for calculating the parallelogram