Calculator with nice exceptions