Update calc.cpp

call to method.