Mother & baby store owner-operator - new-customer lifetime value calculator - a single-file tool that stacks margin by category from birth to month 36 (margin, not revenue), sweeps conversion from 5% to 40% to show where per-acquisition cost lands, and answers "should the newborn gift box carry the expensive sample" and "is an 800-yuan mom class worth it"
You are a coding agent building a calculator for
an independent mother & baby store. Build a
single-file HTML tool (no backend, no external
dependencies, opens on double-click) that lets
the owner compute "the lifetime value of one
newborn customer" and judge whether an
acquisition spend is worth it.
The real problem: whether the gift box carries
the expensive goods, how much a mom class may
cost, the ceiling for street-promo giveaways -
these decisions are currently settled by whoever
argues loudest, because nothing puts "what a
new customer is worth" and "what acquisition
costs" into the same table.
1. Input (all manual, results live-update on
the right)
- Category parameter table, one row each:
category (preset formula / diapers / baby
food & supplements / accessories & bath /
cotton goods & apparel; rows addable and
deletable) / average ticket / annual
purchase frequency / margin rate
- Retention assumptions: retention per 12-
month band (year one 100%, year two enter
X%, year three enter Y% - mother & baby
retention decays with the baby's age, not
on the smooth curve of generic loyalty
programs)
- Cost-basis toggle: goods margin only /
margin minus service labor (mom classes and
consulting hours costed in) - show both
side by side
2. Calculation logic (this exact basis, formula
displayed on the page)
- LTV = sum over categories of (ticket x
annual frequency x margin rate x that
year's retention), summed item by item -
never average the tickets first and multiply
- Acquisition cost = direct spend on one
acquisition action / that action's
conversion rate
- Conversion sensitivity sweep: gift-to-
customer conversion from 5% to 40% in 5-point
steps, outputting per step: per-acquisition
cost and its ratio to first-year margin;
steps exceeding LTV x [ceiling factor]
flagged red
3. Output
- Three headline figures: LTV (36-month
basis) / acquisition-cost ceiling (LTV x
[ceiling factor], default 15%) / per-
acquisition cost at the currently entered
conversion
- The sensitivity table above, plus one
auto-generated reading that states facts
only ("below X% conversion, acquisition cost
exceeds the ceiling") and offers no advice
- A comparison area with two preset scenario
blanks: "add the premium sample to the gift
box, cost up A, conversion expected P1 ->
P2" and "one mom class costs B, expected C
new customers" - each outputs a verdict as
"within ceiling / over ceiling," never
"recommended"
4. Boundaries and prohibitions
- Every number is user-entered; the tool ships
with no industry averages - category mixes
differ wildly between stores, and a preset
number gets treated as authoritative
reference, which does harm
- Retention and conversion are assumptions,
not forecasts; this line stays permanently
on the page
- All computation local; one "export current
parameters and results as text" button (for
pasting to a partner); no cloud saves
- Plain UI language; "smart retail" and "big
data" are banned words
Start with a one-sentence-per-section page
structure, then the complete single-file code,
then usage notes: where to find tickets and
frequencies first (the POS category report),
how to estimate retention (observe member
retention by baby-age band), and how often to
recompute (every six months).
Why it is written this way
Summing category by category instead of "average ticket x total frequency" is the load-bearing choice in the math. Mother & baby spending is wildly dispersed: formula runs dozens of tins a year, cotton goods two or three trips, toys pure luck - averaging first lets the high-frequency low-ticket categories drag the estimate off until the LTV matches no real customer. Item-by-item stacking also yields a free insight: the result area can show which category contributes most of the customer's value, and the owner who sees formula carrying seventy percent instantly understands why every battle in this trade centers on the first tin. An insight that falls out of the algorithm's structure is different in kind from one bolted on in prose.
Retention bands by baby age rather than smooth member-year curves reflect the essential difference between this trade and other retail. A gym's retention curve follows service quality; a baby customer's "retention" is half written by nature: weaning at 12 months decays formula spending, kindergarten entry at 36 months drops everything. Fitting a smooth loyalty curve to this data systematically overstates years two and three - exactly the years that decide whether the owner should invest in service at all. Presetting "year one 100%, years two and three enter your own" splits industry physics (decay is certain) from store specifics (how fast), keeping each in its place.
The conversion sweep is the soul of the tool. The owner's real acquisition dilemma is never "what is a customer worth" - it is "I don't know my conversion rate." At 10% versus 25% gift conversion, per-acquisition cost differs by 2.5x and the verdict flips from yes to no; a single-conversion calculator hides the most important unknown inside a default parameter and produces a precise-looking answer that is actually a coin flip. Sweeping 5% to 40% shows the owner a line, not a point: "as long as my true conversion sits in this stretch, the action pays" - the decision moves from guessing a number to locating yourself on a curve.
Shipping with no industry averages deliberately inverts what tools usually do. Preset "industry average ticket 300 yuan" gets adopted as-is, and the owner skips the step of entering their own data - while a community store and a mall store can differ twofold in category mix. A wrong conclusion wearing the halo of "the tool computed it" is more dangerous than a gut call. Better an empty tool that costs five extra minutes of data entry than a single number that did not come from the owner's own till. Same reasoning caps the scenario verdicts at "within ceiling / over ceiling": whether to act also involves cash flow and competitive pressure - the owner's judgment. The tool's job is only to settle the part that can be settled.
Variables
| Variable | Description |
|---|---|
| Ceiling factor | The acceptable acquisition-cost share of LTV - 15% default; cash-tight stores lower it (survive first), pipeline-starved stores raise it short-term (buying time) |
| Year 2/3 retention | Baby-age retention assumptions - estimate from the store's own member retention by age band; when unsure, enter the conservative value: understating LTV only costs you an unspent opportunity, overstating it costs real money |