How it works
The day of the year counts from 1 on 1 January, so it is the number of days since then plus one. A leap year has 366 days, which shifts every date after February by one. The ISO week number is the one used for planning and for many business calendars: weeks start on Monday and week 1 is the week that contains the first Thursday of the year.
Formula
days left = days in the year − day of the year
days in the year = 366 in a leap year, otherwise 365
Sources
Example
5 December 2026 is day 339 of 365, so 26 days are left. The ISO week is 49. Check: 1 January 2026 plus 338 days is 2026-12-05.
Frequently asked questions
Which years are leap years?
Years divisible by 4, except century years that are not divisible by 400.
Is 31 December always day 365?
In a common year yes. In a leap year it is day 366.
What is the ISO week?
A week that starts on Monday, where week 1 is the week containing the first Thursday.
Is this the same as a Julian day number?
No. A Julian day number is a continuous count that does not restart each year.