Batch expiration calculator
Computes expiry dates and days remaining for many items at once, one line each as name,production date,shelf life[,unit], then summarises expired, near-expiry and fine. Days, months and years are supported with months clamped to the target month length exactly like the single version. Pure text lines, no spreadsheet import or export.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
Months are clamped; rows sort by days remaining, and without a reference date only the expiry is computed.
Enter a value to see the result
Items: 0 · Expired: 0 · Near expiry: 0 · Fine: 0
What this tool does
- Audit the fridge, cupboards and medicine box in one pass.
- Build a near-expiry pull list for a small shop.
- Copy item names and dates out of a spreadsheet as CSV lines.
Example
Input
牛奶,2026-01-10,21,天 酸奶,2026-01-20,6,月
Output
Shelf-life batch calculator (month arithmetic is not truncated) 2 entries (no reference date given, so only the expiry dates are computed) Name Produced Shelf life Expires Days left Status 牛奶 2026-01-10 21 day 2026-01-31 Sat - not compared 酸奶 2026-01-20 6 month 2026-07-20 Mon - not compared Method: the "month" unit adds calendar months and clamps to the length of the target month (31 Jan + 1 month = 28/29 Feb), matching Excel EDATE; the "year" unit is 12 months and the "day" unit adds days directly. Rows are sorted by days left ascending, and stay in input order when no reference date is given. Note: input is plain text lines — there is no Excel import or export. To use a spreadsheet, copy it to CSV and paste it here (one entry per line).
Frequently asked questions
Does it import or export spreadsheets?
No. The generator contract is pure logic without file-system or browser APIs, so it works on text lines: copy spreadsheet rows as name,date,shelf life,unit and paste them here.
Which units are accepted?
day/month/year or the Chinese 天/月/年; the unit defaults to days. Months are added as calendar months clamped to the target month length, matching the single version.
How are rows sorted?
By days remaining ascending, so the soonest expiry comes first; without a reference date the original order is kept. The near-expiry threshold defaults to 30 days.
How many lines can I paste?
Up to 500 lines; more reports input-too-large.
Keywords:batch expiryshelf life