edit state getFormula function