Update calc.cpp

Edited by master.