Update calc.cpp

This is updated file