calculate the area of ​​a trapezoid