Skip to content
UniKit

Expiration date calculator

Adds a shelf life in days, months or years to a production date and prints the expiry date plus the total span; a reference date adds the days remaining and the expired status. Months are calendar months clamped to the target month length (31 Jan + 1 month = 28/29 Feb), matching Excel EDATE rather than 30-day arithmetic, and the tool never reads the clock.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Production date

Expiry date and days left

Months are added as calendar months clamped to the target month length (not 30 days), matching Excel EDATE. Leave the reference date blank to skip the countdown — the tool never reads the clock.

Enter the production date to see the expiry date and days left

Total days: 0 · Days remaining: 0 · Days since production: 0

What this tool does

  • Clear the fridge and cupboards by earliest expiry.
  • Check whether an imported food or cosmetic label adds up.
  • See whether a shelf life covers the date you need.

Example

Input

2024-03-01

Output

Shelf life calculation (months added without truncation)
Production date: 2024-03-01 (Friday, March 1, 2024)
Shelf life: 12 months

Expiry date: 2025-03-01 (Saturday, March 1, 2025)
365 days from production to expiry

No “reference date” entered, so no days remaining are given (this tool never reads the system clock).

Basis: a shelf life in months is added as calendar months with the day clamped to the target month (31 January + 1 month = 28/29 February),
matching Excel EDATE rather than 30-day months; a shelf life in years is 12 months, and 29 February + 1 year becomes 28 February.
Note: the shelf life is the manufacturer’s reference period; opening the package, storage temperature and packaging integrity all affect the real date.

Frequently asked questions

Why is 31 January plus one month 28/29 February?

That is the usual calendar-month convention: add one to the month to get February, then clamp the day to the real length of February (29 in a leap year). Excel EDATE behaves the same.

Why not treat 12 months as 365 days?

Because the dates consumers see are calendar-based: twelve months after 2024-03-01 is exactly 2025-03-01. Day arithmetic drifts further off with each month.

Why do I enter the reference date myself?

The tool never reads the clock, so the same input always produces the same output and the result is reproducible and testable. Enter today to see the remaining days and status.

Does this hold after opening?

No. Opening, storage temperature and packaging integrity all change the real usable life; the printed date is a reference under unopened conditions.

Keywords:expiry dateshelf life

Related tools