Calculate the day of the week corresponding to the Gregorian calendar. c