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.
Compare shelf-life and dispatch policies
Follow dated orders from qualifying stock and see what remains at the snapshot.
Compare fulfillment and expired stock
Policy A fills 30 units more.
Edit snapshot and policies
Edit inventory lots (3)
Enter a confirmed first-unavailable date or a documented interval for each lot.
Edit dated demand (3)
Events on the same date run in the listed order. Include the total units requested for each event.
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
Warehouse transfer
2026-12-10 · 45 units requested
Retail replenishment
2026-12-14 · 100 units requested
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
| Lot | Released | First unavailable | Date basis | Units |
|---|---|---|---|---|
| Lot L1 | 2026-12-01 | 2026-12-10 | confirmed | 60 units |
| Lot L2 | 2026-12-03 | 2026-12-18 | confirmed | 100 units |
| Lot L3 | 2026-12-12 | 2027-01-08 | confirmed | 90 units |
| Order | Demand date | Eligible before dispatch | Filled | Unfilled | From qualifying lots |
|---|---|---|---|---|---|
| Retail delivery | 2026-12-05 | 160 units | 75 units | 0 units | Lot L1 · 60 units · 5 days Lot L2 · 15 units · 13 days |
| Warehouse transfer | 2026-12-10 | 85 units | 45 units | 0 units | Lot L2 · 45 units · 8 days |
| Retail replenishment | 2026-12-14 | 130 units | 100 units | 0 units | Lot L2 · 40 units · 4 days Lot L3 · 60 units · 25 days |
| Order | Demand date | Eligible before dispatch | Filled | Unfilled | From qualifying lots |
|---|---|---|---|---|---|
| Retail delivery | 2026-12-05 | 100 units | 75 units | 0 units | Lot L2 · 75 units · 13 days |
| Warehouse transfer | 2026-12-10 | 25 units | 25 units | 20 units | Lot L2 · 25 units · 8 days |
| Retail replenishment | 2026-12-14 | 90 units | 90 units | 10 units | Lot L3 · 90 units · 25 days |
Show copyable CSV
How to use this calculator
- Set a snapshot date and the two minimum days remaining you want to compare.
- Enter each lot’s release date and units. For expiration, enter a confirmed date or calculate from a documented start date and duration.
- Enter your dated demand events. Add multiple events in the order they would be processed on the same day.
- 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
EOQ & Inventory Ordering Planner
Compare economic order quantities with pack sizes, all-units discounts, storage and order budgets. Visualize carrying costs, stock cycles and supplier tradeoffs.
Cost of Goods Sold & Inventory Ledger
Calculate COGS and ending inventory with FIFO, moving average and period-end weighted average. Trace inventory costs and compare gross profit on the same receipts and sales.
Date Difference Calculator
Calculate the exact number of days, weeks, months, and years between two dates.
Business-Day Deadline Planner
Calculate deadlines forward or backward with custom workweeks, closures and special openings. Compare calendars, inspect counted dates and month-end adjustments, and export the complete audit.
Prescription Days Supply & Refill Timeline Planner
Compare medication supply and refill dates using quantities and a schedule you have confirmed. See projected gaps and reconcile the daily stock ledger.
