Shelf Life Calculator & Lot Expiry Planner

Use confirmed shelf-life terms, dated stock lots and planned shipments. Calculate a first-unavailable date, find which lots can serve each order, and compare how two recipient shelf-life policies change fulfillment and expiry.

Inventory planning

Compare shelf-life and dispatch policies

Follow dated orders from qualifying stock and see what remains at the snapshot.

Policy A fills 220 units. Policy B fills 190 units.

Compare fulfillment and expired stock

Policy A fills 30 units more.

Policy A · 0 days minimum
220 units filled
0 units unfilled · 0 units expired
Policy B · 7 days minimum
190 units filled
30 units unfilled · 60 units expired
Edit snapshot and policies
Edit inventory lots (3)

Enter a confirmed first-unavailable date or a documented interval for each lot.

Lot 1
Lot 2
Lot 3
Edit dated demand (3)

Events on the same date run in the listed order. Include the total units requested for each event.

Order 1
Order 2
Order 3

Demand by date and stock at snapshot

Bars share one unit scale. The outline denotes requested units.

Retail delivery

2026-12-05 · 75 units requested

Policy A75 units filled
Policy B75 units filled

Warehouse transfer

2026-12-10 · 45 units requested

Policy A45 units filled
Policy B25 units filled

Retail replenishment

2026-12-14 · 100 units requested

Policy A100 units filled
Policy B90 units filled

Stock at 2026-12-18

Policy A
Meets minimum life
30 units
Below minimum life
0 units
Expired
0 units
Not yet released
0 units
Policy B
Meets minimum life
0 units
Below minimum life
0 units
Expired
60 units
Not yet released
0 units
Open lot and allocation ledger
Lots and confirmed expiry
LotReleasedFirst unavailableDate basisUnits
Lot L12026-12-012026-12-10confirmed60 units
Lot L22026-12-032026-12-18confirmed100 units
Lot L32026-12-122027-01-08confirmed90 units
Policy A allocations
OrderDemand dateEligible before dispatchFilledUnfilledFrom qualifying lots
Retail delivery2026-12-05160 units75 units0 units

Lot L1 · 60 units · 5 days

Lot L2 · 15 units · 13 days

Warehouse transfer2026-12-1085 units45 units0 units

Lot L2 · 45 units · 8 days

Retail replenishment2026-12-14130 units100 units0 units

Lot L2 · 40 units · 4 days

Lot L3 · 60 units · 25 days

Policy B allocations
OrderDemand dateEligible before dispatchFilledUnfilledFrom qualifying lots
Retail delivery2026-12-05100 units75 units0 units

Lot L2 · 75 units · 13 days

Warehouse transfer2026-12-1025 units25 units20 units

Lot L2 · 25 units · 8 days

Retail replenishment2026-12-1490 units90 units10 units

Lot L3 · 90 units · 25 days

Show copyable CSV

How to use this calculator

  1. Set a snapshot date and the two minimum days remaining you want to compare.
  2. Enter each lot’s release date and units. For expiration, enter a confirmed date or calculate from a documented start date and duration.
  3. Enter your dated demand events. Add multiple events in the order they would be processed on the same day.
  4. Compare unfilled demand and expiry by policy. Open the ledger or download the CSV to see the source lot and days remaining for each allocation.

The Formula

The mathematical logic powering this calculation is:

For a documented shelf life, add whole calendar days or whole calendar months to the stated start date. When the target month is shorter, clamp to its last date. The earlier of the derived and separately entered cutoff is the first unavailable date. Direct date mode uses the confirmed first unavailable date you supply.

At the date of a shipment, first-expiry-first-out (FEFO) issues stock that has been released, still has positive remaining calendar days, and meets the entered minimum. Rank by earliest unavailable date, then earliest release, then row ID to break ties. Handle demand in chronological order, using worksheet order when two events share a date. Each event consumes stock exactly once within its policy. A missing quantity stays unavailable on that event.

At the close of the snapshot date, classify remaining units. Future receipts have not been released by the snapshot. Expired units reached their first unavailable date. Other released units have either sufficient days remaining or fewer than the policy requires. Planned demand later than the snapshot stays visible in the input ledger.

Enter one product and quantity unit per worksheet, 1–18 lots, up to 18 dated demands and 0–365 minimum days. Each line accepts up to 1 billion whole units. The shelf-life interval accepts up to 3,660 calendar days or 120 calendar months. The date range is 1900–2199. Use documented product and storage dates for the worksheet.

Worked Example

If you input:

  • Snapshot: December 18, 2026
  • Lots: 60, 100 and 90 units with different release and expiry dates
  • Demand: 75, 45 and 100 units on December 5, 10 and 14
  • Minimum remaining life: 0 days under A and 7 days under B

Result:

Policy A fulfills 220 units and has 30 left in stock at the snapshot. Policy B fulfills 190, leaves 30 units unfilled, and has 60 expired. The ledger shows the lots allocated to each shipment.

Frequently Asked Questions

Does the expiry date count as available for shipment?

Enter the first date the lot cannot ship. A lot that reaches that date is no longer allocated, even when the recipient accepts a zero-day minimum.

How are calendar months added when the new month is shorter?

The day is clamped to the last calendar day of the resulting month. For example, one calendar month from January 31, 2024 gives February 29, 2024.

How does first-expiry-first-out differ from first-in-first-out?

FEFO picks the qualifying lot with the earliest expiry. Receipt timing breaks equal-expiry ties. This matters when a newly received lot expires before older stock.

What happens to demand that cannot be filled on its date?

An unfilled amount remains on that dated event. Later receipts are available only for later orders unless you enter another demand line.

Can I estimate the shelf life of a product from its storage conditions?

Use confirmed supplier dates or a documented interval for the applicable conditions. This worksheet applies the dates you enter and compares allocation policies.

Similar Calculators