Calculating the area of the polygon