Update calc.cpp

changes have been made