Magic calculator