Create calc.cpp

this is simple calculation.