N NoBullshit.wiki 中文

Mother & baby store purchasing - formula stage-mix ordering tool - trailing 4-week sales as the baseline, member-age migration as the correction (how many babies age into the next stage next month); the age-to-stage mapping table is filled in by the user from the cans on their own shelf and never shipped inside the tool; outputs an order range per stage with shelf-life pressure flags, and stages losing babies get flagged to order down

Works with:Claude / GPT-4 classCategories:Mother & Baby StoreLevel:Advanced Updated

Please write a single-file HTML tool (no dependencies,
opens by double-click, works offline) for stage-level
infant formula order sizing. I handle purchasing and
ordering for a mother & baby store.

[INPUTS] (all hand-entered; the tool supplies no
defaults of any kind)
1. Stage mapping table - the user transcribes it from
   the age bands printed on the cans this store
   stocks. The tool ships without any built-in
   "stage 1 = 0-6 months" style mapping
2. Member age profile: member counts by age band
   (exported from the member system; members with no
   birthdate on file go in one separate "age unknown"
   cell)
3. Sales baseline: per-stage unit sales, trailing
   4 weeks (cans)
4. Inventory: current stock per stage (cans), with
   cans under [safety months] to expiry broken out
   as their own figure
5. Parameters: supplier lead time (days), shelf-life
   safety months, coverage horizon (how many weeks
   one order should cover, e.g. 4)

[CALCULATION RULES]
1. Baseline demand per stage: trailing 4-week sales
   scaled to the coverage horizon
2. Migration correction (the core, three steps):
   a. using the stage mapping, compute which stage
      each age band's babies migrate INTO next
      month, and which stage they migrate OUT of
   b. per-member frequency for a stage = that
      stage's trailing 4-week sales divided by that
      stage's current member count (age-unknown
      members never join the migration; they stay
      inside the baseline only)
   c. correction = members migrating in x per-member
     frequency - (members migrating out x per-member
     frequency)
3. Suggested order range:
   - Floor = baseline demand over "lead time + safety
     margin" + positive correction - saleable stock
     (saleable stock = total minus what's under the
     safety months to expiry; floor at zero)
   - Ceiling = shelf-life back-solve: with current
     stock plus the order consumed at baseline rate,
     more than safety months must remain before
     expiry. Where no safe ceiling computes (existing
     stock itself is date-tight), flag red: "shelf-
     life risk in current stock - sell through
     before ordering"
4. Stages with net negative migration: labeled
   explicitly "demand declining - order at or below
   the floor," with a one-line reason citing the
   out-migrating headcount

[OUTPUTS]
- Main table: stage / baseline demand / migration
  correction / saleable stock / floor / ceiling /
  shelf-life pressure flag
- Migration detail: which age bands are on the move
  this month, into which stage, how many babies
- Sensitivity section: with lead time +/- 3 days and
  the age-unknown share +/- 10%, how much each
  stage's floor moves
- "Export text" button: a plain-text draft purchase
  order ready to send to the supplier

[HARD CONSTRAINTS]
- No industry default numbers anywhere in the tool -
  the age-stage mapping, per-member consumption and
  sales rates all come from inputs; anything missing
  stays blank with a "please fill in" prompt. The
  tool never guesses
- Age-unknown members are excluded from migration,
  and the sensitivity section must display their
  share; above half, warn: "migration correction
  unreliable - order on the plain baseline"
- Numbers display to the whole can; no decimal
  pseudo-precision
- Interface in the store's working language, single
  file, no external resources, fully offline

Why it is written this way

What separates this tool from "order what sold last month" is the migration correction. Stage demand is not a stable series - babies only age up, so the five-month-olds in the member pool exit stage 1 and enter stage 2 next month, and stage 1's beautiful trailing sales describe a demand that is expiring. Pure-sales-following ordering over-orders the stage that was hot (stage 1 last month) and permanently chases the one that's heating (stage 2 ahead). The correction runs entirely on retrospective data the store already has (who is what age, what sold), and the only extrapolation is "next month these babies are one month older" - one of the rare futures in retail that needs no forecasting.

Making the user transcribe the age-to-stage mapping by hand, with nothing shipped in the tool, is the anti-footgun detail. Stage bands genuinely vary between brands; ship a "standard table" and users will trust it - and one wrong boundary skews the entire migration correction. Two extra minutes of transcription against the actual cans on the shelf buys a mapping that always matches the real assortment. It is the "no built-in industry numbers" principle made concrete for this trade: what needs defending against is not only invented numbers, but real numbers that don't describe this store's goods.

"Age-unknown members sit out the migration," plus the sensitivity alarm, is honest handling of member-data quality. Mother & baby member files are missing birthdates at a non-trivial rate; spreading those members across the known-age distribution would make the correction look precise while being wrong underneath. Better to exclude them explicitly and let the sensitivity section light up their share: small share, trust the correction; over half, the tool itself recommends falling back to the plain baseline. A tool that tells you when not to trust it beats a tool with three decimal places every time.

The ceiling comes from shelf-life rather than from cash because formula is the category where "don't overstock" has teeth: the cost of over-ordering is not tied-up working capital but date markdowns and write-offs, so the binding constraint is naturally "can it be consumed at the going rate while enough shelf life remains." Floor covers lead time (don't gap and lose the customer to another store), ceiling guards the date (don't press yourself into near-expiry stock), and the range between them is the purchaser's actual decision space.

Variables

Variable Description
Shelf-life safety months Below how many months to expiry stock stops counting as saleable in the floor calc - set per stage against its sales velocity; slow stages take the wider margin
Coverage horizon How many weeks one order covers - tied to lead time and supplier minimums; longer coverage means more shelf-life pressure, 4 weeks is a common start
Age-band granularity How many months per band in the member age export - monthly is most accurate; a coarser file means coarser bands and the migration precision drops with it

formula orderingstage mixmember age profile