Proportional grid calculation.