region calculation