Right cell size calculation