Update calc.cpp

updated...using branch