Update calculate.c