Calculates the area of the union of rectangles