delegating formulas to functions