Fixes issue #17: the calculation is wrong after I press clear (AC)
Merge pull request #20 from HageMaster3108/master

Fixes issue #17: the calculation is wrong after I press clear (AC)