Calculators using if and case