A date plus a day count
Shelf Life Calculator
Shelf life here is arithmetic. Add the life, in whole days, to the packed date to get the end date. Then subtract the “as of” date you type. Packed on 1 January 2026 with a 30-day life ends on 31 January. As of 10 January, 21 days remain. A negative number means the as-of date is already past the end. The page does not decide whether the food, the chemical, or the part is still good.
Days remaining
21
- End year
- 2,026
- End month
- 1
- End day
- 31
Add days, then compare
The end date and the days remaining are computed from the packed date, the life, and the as-of date.
- End date = packed date + life days, on the civil calendar.
- Days remaining = end date − as-of date.
- A negative remainder means the as-of date is later than the end date.
Worked examples
Thirty days from New Year
As of 10 January, 21 days remain.
21 · ≈ 2,026
Already past
Same pack, checked on 5 February.
-5 · ≈ 2,026
Good for
- A packed-on date and a printed day count
- A lab reagent whose certificate gives days, not a vibe
- Checking a date that has already passed — the remainder goes negative
Common mistakes
- Treating a negative remainder as “still fine if it smells okay”
- Using months when the label says days
- Letting the computer’s today sneak in. This form has an as-of date on purpose
Frequently asked questions
Does a negative number mean throw it out?
It means the date you typed is after the calculated end. Safety is a separate decision. This page only counts days.
Why is there no “today” button?
So a saved page does not change overnight, and so a test can name the date.
Do you count the packed day as day 1?
The end is packed date plus the life in days. A 30-day life from 1 January ends on 31 January.
Leap days?
The calendar includes them. A life that crosses 29 February in a leap year uses that day.
Sources and updates
Last reviewed .
- Civil date plus a day count – Life days are user-entered. Not a food-safety table.
This counts days. It does not say a product is safe to use.