Zeller's congruence
Zeller's congruence is a modular arithmetic algorithm devised by Christian Zeller in the 19th century for calculating the day of the week for a given date in either the Gregorian or Julian calendar. It expresses the weekday as a congruence modulo 7, combining contributions from the day of the month, the month, the year within the century, and the century itself.