This code is not my very own, however by using this code, I have learned how to make this. ^
Since I have already posted a description about the calculator I will post the link to it. http://codex.gnimmargorp.com/19yyun/2017/02/28/goyo-large-2/
Here is the Codecademy site where I did 31% of the course.