I understand dynamic inputs, but how can I deliver **dynamic formulas** to calculate something for a user?

Each user would use a different formula to calculate.

User 1: = (input1 + input2) * input3

User 2: = input1 + input2 * input3

I want to save the formula to the DB and calculate based on current users formula.