How can I accept a formula from an input field to calculate a value?
For example "(a+b)/100"
, "(a*b)/300"
"(b/a)"
, etc.
The result should be the calculated value. So, given A = 100; B = 200;
and the formula is "(a+b)"
, the result should be 300
.