I have a textarea where user can create a dynamic formulas using dropdown lists(for operators, variables etc) like this:
basic / workingDays * attendingDays
where values of basic, workingDays, attendingDays are saved in database. I want to map these variable from database during runtime. How can I do this.
NCalc is a very powerful framework that you could try. They let you define dynamic parameters which sounds like exactly what you need. You can do something like this:
There are also some related questions out there such as this one and this one that give some other options.