working calculator for simple equation