Revert "Fix a typo in CalcValue()."

This reverts commit d4509c21204e8f2cad00332761eae4a8a38de741.