Coded function

Coded the calc function