Calculator that performs addition and subtraction