Code formatting in calculate.c