Thank you, both Calc84 and Runer. That's incredible. I knew it could be done and you guys did it. Now do you mind explaining how it works?

I don't understand the math behind it, though I understand how to use it. Thank you guys so much!
Is this BASIC?
Yup.