Changed the calculator

The calculator now tells you if or if not you should go to the bar. The
code needs tested.