add IF() on Calc.cs