Calculating the area of quadrilateral