Calculation of table's cell sizes.