Update calculate.c

Filled out with actual working code. Completed.