Fixed size calculation for grids with unequal number of columns and rows