Update calc.cpp

second update.