Determination of the day of the week determined for the latter part of the analysis. By using a given day August 13, 2009 which was a Thursday as a reference, with "Base" and "n" being the number of days and weeks it has been since 01/01/0001 to the given day, respectively and "k" the day into the given week which must be less than 7, "Base" is expressed as Knowing that a year divisible by 4 or 400 is a leap year while a year divisible by 100 and not 400 is not a leap year, a software program can be written to find the number of
Determination of the day of the week where is the day of the week (counting upwards from 1 on Sunday instead of 0 in Gauss's version); and , , and are numbers depending on the day, month, century and year which are tabulated in the "Complete table: Julian and Gregorian calendars" above. Note that the numbers tabulated for y can also be described by the following equation: Where So, for example, if you want to find 'y' for the year 1987: In Zeller’s algorithm, the months are numbered from 3 for March to 14 for February. The year is assumed to begin in March; this means, for