Update calc.cpp

changes have been made
Merge pull request #1 from Namrata-Mone/3939

Update calc.cpp