Adding calculator function.
Merge pull request #1 from halfspiral/master

Adding calculator function.