region ratio calculation