I have a page where user can select and define their own formula for calculating "WORKLOAD" of lecturers
For example, (Jobtypevalue + Creditpoint) * Number of Students
I store this defined formula by the user in database.
Now, I want use this formula in another page which are fields (textbox) through which user can enter any number and at the bottom I need to calculate by using values entered by user based on the predefined formula from the database
If user enters Jobtypevalue = 7, Creditpoint = 3 and Number of students = 10 Then, at the bottom of page, I need calculate [(7+3)*10] and display "Workload = 100"
How can I do this using javascript ? Since, I have the formula on pageload from database and values are entered by user later, thought it is better to calculate the workload using javescript(client side)