Calculation for a country or a rectangle