Calendar Reasoning: Day Shifts and Leap Years
Count the days between dates, use the remainder after full weeks and check February before crossing month boundaries.
A complete week leaves the weekday unchanged
There are seven weekdays. Advancing seven days returns to the same weekday. To move a weekday by a larger number of days, divide that number by 7 and use its remainder. Move forward for a later date or backward for an earlier date.
A starting date contributes zero elapsed days. If the 11th is Tuesday, the 12th is one day later. The 18th is seven days later and is also Tuesday. The number of elapsed days is different from the number of dates listed when both endpoints are included.
Know the month boundary
April, June, September and November have 30 days. February has 28 days in an ordinary year and 29 in a leap year. The other months have 31 days.
In the Gregorian calendar, a year divisible by 4 is a leap year unless it is also divisible by 100. For a year divisible by 100, test divisibility by 400. For example, 2000 is a leap year and 2100 is an ordinary year. US Naval Observatory, Leap Years
Worked example: cross from one month to the next
Suppose 26 March is Tuesday. March has 31 days. From 26 March to 31 March is 5 days, and from 31 March to 3 April is 3 more. The shift is 8 days, or one complete week and one extra day. So 3 April is Wednesday.
26 March -> 31 March 5 days 31 March -> 3 April 3 days Total 8 days 8 = 7 + 1 move 1
Worked example: count a weekday inside a month
A 31-day month begins on Friday. Its first 28 days are four complete weeks. Each weekday occurs four times in those 28 days. The remaining three dates are Friday, Saturday and Sunday, so those weekdays each occur five times. Monday occurs four times.
Exam routine
Mark the starting date and the target date. Count only the completed steps between them. Check the length of every month you leave. Reduce the count modulo 7 by taking the remainder, then move in the direction the question asks.
Sign in to keep your progress. Sign in