Calculator: Fix sqrt parsing, move calculation into it's own function

Signed-Off-By: Josh Palmer <jpalmerwatkins@me.com>