Update calc.cpp

Again modified