Integer calculator