Calculate the area of irregular shapes using square units