Update calc.cpp

edited