Optimised region calculation logic