Improved area calculation