how is total area calculated