Update calc.cpp

updated in branch