# How to Become a Human Calendar

## How to Become a Human Calendar

Mentally finding out the day of the week for any date is a skill you can easily learn. You don’t need to be an autistic genius – all it takes is basic memorization effort and some trivial math.

## The Method

To find out the days of the week for any date, use the formula:

## [day of week] = (yearcode + monthcode + day) mod 7

If you’re not math-inclined, this may look quite scary at first, but don’t worry: using the formula is straightforward. Let’s walk through each one of of its parts. The month codes are one of the formula’s most troublesome parts, since they don’t follow a clear logic. We’ll have to memorize them

January: 1
February: 4
March: 4
April: 0
May: 2
June: 5
July: 0
August: 3
September: 6
October: 1
November: 4
December: 6
We also need the year code, which are also apparently arbitrary.

2008: 2
2009: 3
2010: 4
2011: 5
2012: 0
2013: 1

The result is always a number from 0 to 6, and its interpretation couldn’t be any easier:

1: Sunday; 1st day of week
2: Monday; 2nd day of week, and so on.
3: Tuesday
4: Wednesday
5: Thursday
6: Friday
0: Saturday

###### The CalculationLet me show you how the formula works with an example: December 25, 2008.

Step 1: Get the codes for month and year. According to the code tables, December is 6 and 2008 is 2.

Step 2: Apply the numbers in the formula:

[day of week] = (yearcode + monthcode + day) mod 7
[day of week] = (2 + 6 + 25) mod 7
[day of week] = 33 mod 7; see below if you don`t know what ‘mod’ is
[day of week] = 5
5 means Thursday. That’s the day of the week for December 25, 2008.

In case you’re unfamiliar with the modulo (mod) operator, all it does is give you the remainder of a division. Take, for example, 17 mod 7. If you divide 17 by 7, you get 2 and a remainder of 3. So, 17 mod 7 = 3.

Now, if you don’t like the idea of performing divisions mentally, there’s hope: you don’t really need to divide by 7 to get the number’s modulo. All you need is to cast out sevens of the number. That is: take the closest multiple of seven below your number and just take the difference between them. For example, in 17 mod 7, the closest multiple of 7 below 17 is 14. Casting 14 out of 17, there’s a leftover of 3. Therefore, 17 mod 7 = 3.

An additional tip to speed up the calculation: Instead of summing up all the three numbers and calculating the modulo thereafter, as the formula suggests, do it slightly differently: don’t wait until you have a big number to calculate its modulo. You can cast out sevens as you go. Let’s do the same calculation we did above (December 25, 2008), but casting out sevens as we go.

[day of week] = (2 + 6 + 25); let’s cast out sevens for 25 before we go.
[day of week] = (2 + 6 + 4);
[day of week] = (8 + 4); let’s cast out sevens for 8 before we go
[day of week] = (1 + 4);
[day of week] = 5
Although there are extra steps, you will always work with small numbers, speeding up the process.

When dealing with leap years: you need to subtract one from the result, for the months of January and February. The other months are calculated just as any normal year.

Here’s the formula for the year code:

yearcode = (centurycode + [last two digits of year] + ([last two digits of year] div 4)) mod 7

‘Div’ is the operator for integer division. Just like ‘mod’ gets the remainder of a division, ‘div’ gets its integer quotient. For example, 17 div 7 = 2 (with a remainder of 3).

The century code follows a recurrent pattern, and can be used for any date in the Gregorian calendar:

1600s: 6
1700s: 4
1800s: 2
1900s: 0
2000s: 6; repeating the pattern
2100s: 4; 6-4-2-0 pattern goes on…
With that, you have a complete mental calendaring system. This is a handy tool that, once learned, can be used for your entire lifetime. Try it just once or twice, and you’ll see that it really isn’t as much work as it looks like.

Categories: knowledge