Update cal.cpp

call function.