Fix typos in calculate.c