Create calc.cpp

This is for b3 batch