Update calc.cpp

using branch Shweta
Merge pull request #1 from nikita-kamble/Shweta

Update calc.cpp with merging.