I want to embed a small and simple calculator on my website. I want it in two different versions. One really simple where I have a textfield where I only can enter numbers e.g. "72" and depending on the size of the number it should calculate different formulas when I press "calculate". For example if the entered number is smaller then 100 it should calculate the formula 32000/input_number/36 or if it is larger then 100 it should multiply that formula with 2.
then I want a slightly more advanced version where I can choose from 3 radio buttons e.g "small", "Medium" and "Large" and then some optional checkboxes with certain values attached to them. after that I want a textfield where I can put a number., for example "73" the same way as before.
Depending on the chosen radio buttons and checkboxes the formula should be created from this information.
if radio button medium
and =( radiobutton(medium)+sum_of_chosen checkboxes ) / input_number/ 36
should be calculated and returned