Update calc.cpp

Updated