Change some formulas in defining size of cell