What Day Will It Be in N Days? Modular Arithmetic for Dates and Clocks

October 29, 2026

Weekdays repeat every 7 days, so after any multiple of 7 days the weekday is the same. To find the weekday N days ahead, divide N by 7 and keep the remainder, which is the number of days to move forward from today. This is modular arithmetic, written N mod 7.

If today is Friday, what day will it be in 100 days? 100 ÷ 7 = 14 remainder 2 (since 7 × 14 = 98). Move forward 2 days from Friday: Saturday, Sunday. The answer is Sunday.

Skip the math and get your answer instantly:

Open the Date Calculator →

Worked Table From a Friday

Count forward from Friday by the remainder: 1 gives Saturday, 2 gives Sunday, 3 Monday, 4 Tuesday, 5 Wednesday, 6 Thursday, 0 stays Friday. In 365 days, 365 mod 7 = 1 (since 7 × 52 = 364), so the same date next year is one weekday later (two after a leap year). For 1,000 days, 1,000 mod 7 = 6 (7 × 142 = 994), so Thursday. For 10,000 days, 10,000 mod 7 = 4 (7 × 1,428 = 9,996), so Tuesday.

Days aheadRemainder mod 7Day if today is Friday
302Sunday
906Thursday
1002Sunday
1805Wednesday
3651Saturday
1,0006Thursday
10,0004Tuesday

Going Backwards

To find the weekday N days ago, move backward by the remainder. If today is Friday, 100 days ago was 2 days before Friday: Wednesday. Equivalent: subtract the remainder from 7 and move forward, 7 − 2 = 5 days forward from Friday, which is Wednesday. Check: Wednesday + 100 days = Wednesday + 2 days = Friday. Correct.

Clock Arithmetic

A 12-hour clock works modulo 12. If it is 4:00 now, what time will it be in 100 hours? (4 + 100) mod 12 = 104 mod 12 = 8 (12 × 8 = 96, remainder 8), so 8:00, and AM or PM depends on whether the 100 hours contain an even or odd number of 12-hour blocks. A 24-hour clock works modulo 24: 100 hours is 4 days and 4 hours, so the time is 4 hours later on the clock, and 4 days later on the calendar. Months and years need more care because they have unequal lengths, so use a date calculator for exact answers.

Other Cycles

The same technique applies to any repeating cycle: a rotating schedule of 4 shifts (day number mod 4), a 10-person gift exchange, or alternating garbage collection weeks. If the first day of a 3-week rotation is day 0, then day 50 is in position 50 mod 21 = 8 of the cycle. Computing the remainder tells you the position in the cycle without counting each step. Programmers use the % operator for the same purpose, such as wrapping indexes in arrays.

Frequently Asked Questions

How do I find the weekday after N days?

Divide N by 7 and move forward by the remainder.

What day is it 100 days after a Friday?

Sunday.

Why does the same date shift by one weekday each year?

Because 365 mod 7 = 1; leap years shift by two.

How do I go backward?

Move back by the remainder, or forward by 7 minus the remainder.

What is modular arithmetic?

Arithmetic that keeps only the remainder after division by a fixed number.