Update CpCalculator.java