Shoe store owner-operator - broken-size lot-buyout offer evaluator - when a closeout buyer shows up to take the broken-size stock as one lot, three numbers on screen before you answer: the offer as a per-pair average against your weighted cost, the immediate cash against the weekly carrying cost of holding, and the break-even pair count (how much of the pile, at your own clearance prices, you'd have to sell to match the offer), a side-by-side table of sell-the-lot versus sell-in-store, and no accept-or-reject verdict - the tool lays the money flat, the owner swings the hammer; single-file offline, stock list keyed in the day before, offer is the only number you touch on the day
You are a coding agent building tools for
independent shoe store owners. Build a
single-file HTML tool (no backend, no
external dependencies, works offline, opens
straight in a phone browser). Purpose:
when a closeout buyer offers one price to
haul away the broken-size stock, run the
"take it or not" math fast.
The real problem: broken sizes sell off
pair by pair for months, slowly; a lot
buyout is instant cash at a number that
usually stings. In front of the offer the
owner needs three sums - per-pair price,
distance below cost, and how much would
have to sell in-store just to match it -
and all three are wrong when done in your
head under pressure.
One, inputs (two panels):
- Stock detail, one row per category -
category (sandals / closed-toe / insu-
lated / athletic / leather / kids),
pairs, average cost, average age in
days; one-tap totals
- Buyer's terms: the one-price lot offer;
and the owner's own expected clearance
price per category (one row each, may
be left blank - blank categories drop
out of the break-even math, flagged
clearly)
Two, output (four numbers + one table on
one screen, large type):
- Number 1, per-pair average: offer
divided by total pairs, shown side by
side with the weighted average cost
and the gap
- Number 2, cash and loss: the offer
against total cost of the stock, in
absolute money
- Number 3, break-even pairs (the
core): at the owner's clearance
prices, how many pairs must sell to
match the offer - both the count and
the share (e.g., "68% sold breaks
even; the remaining 32% is given
away"); blank-priced categories are
excluded and named
- Number 4, the cost of dragging: on
average age and a daily carrying rate,
the added cost of holding per week -
turning "wait and see" into money that
ticks weekly
- The table: lot buyout versus in-store
clearance, two columns - cash back,
loss, speed of cash, remaining risk,
row by row
Three, usage design:
- Live mode: stock details keyed in the
day before; when the buyer is standing
there, the offer is the only number
you touch, and all four outputs move
in real time - a closeout buyer will
not wait half an hour
- Bulk entry prefills from a saved cate-
gory template (pairs and costs), so
only changed rows get edited
- No "recommend accept / reject" verdict
- the call is the owner's; the tool
lays the money flat
- Data stays in the browser, nothing
uploaded, no network; UI in Chinese,
restrained, no ad slots
Boundaries:
- No forecast of how much or how fast
in-store sales go - "break-even pairs"
answers only "what must sell for this
to make sense"; the market call is the
owner's
- No ticket prices, no discount rates -
every output is absolute money, so a
"we'll take it at two-tenths of tick-
et" line can't drag you into their
coordinate system
- No built-in "closeout market price" -
the tool does not know one, and any
number here would be invented
Why it is written this way
The break-even pair count is the tool's soul. The real decision variable in a lot offer isn't "how big is the loss" - every loss number stings and none of them discriminate - it's "what share would I have to sell myself to match the offer." At a 60% break-even, 40% of the pile was likely going to be given away anyway, so the buyout beats intuition by a mile; at 95%, the buyout is a donation. This one number converts "will this stock even sell" - unpredictable for anyone - into a comparison against a threshold the owner can judge from how fast clearance pairs actually walk out of their store.
Declining to output an accept-or-reject verdict is the tool's sense of its own limits: whether to take the money depends on how tight cash is, whether the store keeps running, how many weeks of season remain, and whether this stock is squatting on selling space - the tool knows none of that. What it can do is put both sides on one table so the choice between "cash now, certain" and "a bet that drags" is made with eyes open.
Stock keyed in the day before, with the offer as the only live input, follows from the real scene: a closeout buyer gives you minutes, and a tool that needs rows typed in during the negotiation is worthless no matter how correct it is. The offer box jumping all four numbers in real time is itself a negotiating instrument - the owner taps a counter-offer, watches the numbers move, and the shape of the buyer's room becomes visible on their own screen.
Two prohibitions - no discount rates displayed, no built-in market prices - defend against the same thing: the offer's coordinate system. Closeout buyers speak in fractions of ticket, and ticket-to-cost ratios differ for every owner, so the moment "two-tenths" enters your head you're pricing in their units. The tool recognizes exactly two numbers - the offer and your cost - and reports everything in absolute money. A built-in "going rate" would be invented, and an invented number becomes an anchor used against you.
Variables
| Variable | Description |
|---|---|
| Clearance prices per category | What each category of broken sizes realistically fetches in-store - take last season's actual clearance transactions (not the marked price); sandals and insulated boots diverge wildly, so fill them separately; leave blank rather than guess high, and the tool will flag the gap |
| Daily carrying rate | What a unit of inventory costs per day to hold - loan rate if borrowed, otherwise the money's daily yield or your own opportunity cost; it feeds number 4, and conservative beats dramatic |
| Age start date | Count age from purchase or from the day the style broke sizes - the latter is recommended: a pair became a clearance candidate the day its size run broke, and aging from there is the truer cost; where the two dates diverge sharply across the stock, that gap itself is the warning sign - broken sizes have sat too long already |