calculate area of input polygon