Thanks you thank you Itamar! it works now! I am so thankful to learn how to do a calculator from you.
For anyone following just copy his code into a label after clicking <> to do it in html form. (may not be necessary)
save. type in 30 and it will output 89 as in my example (attached)
Thanks again.
James