Calculator for Treehouse competition