Uses Lua's String library to calculate formulas