Knowing a date's position in the calendar is only half the story; the other half is how much of the year still lies ahead. The day-of-the-year calculator reports both figures from one date, and you can reproduce the remaining-days result with a short subtraction once you know the year's total length.
To find the days left in a year, subtract the date's day number from the year's total: 365 in a non-leap year, 366 in a leap year. For 13 March in a non-leap year, January and February total 31 + 28 = 59 days, so the date is day 59 + 13 = 72 and 365 − 72 = 293 days remain. The calculator returns this figure for today and for any date you enter.
What is the formula for days left in the year?
The remaining-day count is the year's last day number minus the day number of your date:
Every value in the table below is taken from the calculator's reference material, which works through the 13 March case step by step:
| Step | Value |
|---|---|
| Days in a non-leap year | 365 |
| Days in January and February, non-leap | 31 + 28 = 59 |
| Day number of 13 March | 59 + 13 = 72 |
| Days left after 13 March | 365 − 72 = 293 |
| Days in a leap year | 366 |
If the chosen year is a leap year, the same subtraction starts from 366 instead of 365, and February contributes 29 days to the earlier month total.
Worked example: 13 March in a non-leap year
First establish whether the year is a leap year; this example assumes it is not, so February has 28 days. Next, add the lengths of the whole months that have passed: January's 31 and February's 28 give 31 + 28 = 59. Add the 13 days of March to reach day 72. Finally, subtract that day number from the year's 365 days: 365 − 72 = 293 days left in the year.
Which calculator outputs show remaining days?
Enter a Date using the calendar icon and the calculator reports Remaining days custom, the number of days left in that date's year, together with the Custom number and Custom year. For the current date it also generates The present date is:, Present number, Remaining days present, Present day and Present year automatically.
FAQ
Does the result change in a leap year?
Yes. A leap year has 366 days, so the subtraction starts from 366 rather than 365. February also has 29 days instead of 28, which changes the day number of any later date by one.
Can I calculate the days left for a past date?
Yes. The Date field accepts any date you pick from the calendar, and the calculator reports the remaining days for that date's year rather than only for today.
What is the difference between "remaining days present" and "remaining days custom"?
"Remaining days present" is generated automatically from today's date, while "remaining days custom" is calculated from the date you entered yourself.
References
- Omni's Day of the Year Calculator reference article: the 13 March worked calculation and the calculator's remaining-day outputs.
- Standard Gregorian calendar convention: a 365-day non-leap year and a 366-day leap year.