Simplified RpnCalculator formula