Update calc.cpp

we have done changes