Update calc.cpp

Updated calc.cpp in branch