Car wash purchasing: concentrate dilution & ordering calculator - a single-file tool that turns per-car dosage and forecast volume into how many pails to buy, flags days-of-stock against supplier lead time in red/yellow/green, and drags a slider to show what a sloppy dilution ratio costs per month; no industry-average usage is ever built in, and any product line missing data shows exactly that
You are a coding agent. Build a single-file HTML "Car Wash Concentrate
Dilution & Ordering Calculator" for whoever places the weekly chemical
order: paste in stock and a volume forecast, and immediately see how
many pails of each product to order, how many days stock will last,
and what a drifting dilution ratio costs. Runs locally, no network,
no external dependencies.
The problem it solves: car wash shampoo, spray wax, and presoak come
as concentrate, diluted at ratios like 1:100 before use. Purchasing
counts pails; consumption happens in diluted solution - different
units at each end, so ordering runs on "we used three pails last
month". Meanwhile dilution is done by feel: 1:100 poured at 1:80 is
invisible in the foam and quietly inflates cost.
Inputs:
- Product list (rows can be added/removed): name / pail size
(liters) / standard dilution ratio (e.g. 1:100, concentrate:
water) / standard dosage per car (ml of mixed solution, one
average sedan wash) / current sealed pails and opened-pail
remainder (estimated in liters) / price per pail
- Volume forecast: expected wash count over the next ordering
cycle (cycle length is mine to set), typed by hand; may be typed
as an expression like "last month x 1.1", which the tool computes
- Supplier: lead time in days (order placed to goods received),
minimum order quantity
Calculations and output:
- One row per product:
total mixable solution = (sealed pails x pail size + opened
liters) x dilution multiple
cycle consumption = forecast cars x per-car dosage
days of stock = total mixable / (forecast cars / cycle days x
per-car dosage)
suggested pails = (cycle consumption - total mixable) / dilution
multiple / pail size, rounded up to the order-multiple, floored
at zero
- Three-state flag (days of stock vs. lead time):
days of stock > lead time x 2 -> green: skip this order
lead time < days of stock <= lead time x 2 -> yellow: order in
this cycle
days of stock <= lead time -> red: stockout risk, order today
- Cost-per-car summary row: total projected chemical cost / forecast
cars - the number "what one wash costs us in chemicals"
- Dilution sensitivity: pick any product, drag a ratio slider
across standard +/-30%, and see the monthly cost delta and delta
percent recomputed live at the current month's volume
Implementation requirements:
- Single-file HTML, inline CSS and JS, opens by double-click, zero
network requests
- Nothing is persisted; refresh clears all. Preload a three-product
sample (one red, one yellow, one green) so the three states are
visible on first open
- Per-car dosage may be left blank: that product's row shows
"insufficient data, not calculated" - never zero, never a
default
Do not:
- Do not embed any "industry-average per-car usage" or default
dilution ratios - tunnel, self-serve, and hand-wash shops differ
several-fold in dosage, and every default is wrong in most shops;
for products with no shop data yet, show this measurement hint on
screen: open a fresh pail, record the wash count between first
use and empty, back-calculate per-car dosage, then fill it in
- No consumption forecasting, no "smart replenishment" - the tool
does unit conversion and threshold comparison only; whether to
stock deeper or switch brands is a human decision
- No accounts, no cloud sync, no external libraries, no upgrade
or promo banners
Why it is written this way
"Buy by the pail, consume by the liter" is the root cause of drifting chemical orders at a car wash. In most retail, goods arrive and sell in the same unit; wash chemicals pass through a dilution step on the way - a 25-liter pail at 1:100 is 2,500 liters of solution, and the same pail at 1:50 is half that. Identical purchases, double the shelf life difference between two shops. Reducing the ordering question to one transparent unit conversion is the tool's only real job; doing that one thing well beats ten bolted-on smart features.
The dilution slider is a translator built for the owner. A ratio drifting at the mixing station is invisible in the moment - foam at 1:80 looks like foam at 1:100 - so it never becomes a decision until converted into "this much extra money this month". A report can state the same arithmetic, but a draggable slider turns "a little heavy on the soap" into a live dollar figure; that interactivity is precisely why this is a tool and not an analysis prompt.
Refusing to embed industry-average usage is the make-or-break design decision. Dosage differs several-fold across tunnel, self-serve, and detail-hand-wash operations, so any built-in default is wrong at most shops - and a pre-filled number gets trusted on sight. The fallback measurement (count the cars a fresh pail serves from open to empty) costs nothing and yields true local data within two weeks. The tool should say "insufficient data" rather than produce a professionally formatted wrong number.
The red/yellow/green thresholds are multiples of lead time rather than absolute days, because "10 days of stock" means nothing on its own - comfortable with a 3-day supplier, already dangerous with a 14-day one. Stockout risk was always the difference between days-of-stock and lead time; anchoring the thresholds to each supplier's own lead time means the tool moves shops without retuning constants.
Variables
| Variable | Description |
|---|---|
| Per-car dosage | Measure it in-shop: open a fresh pail, count washes until empty, back-calculate; shops mixing standard and detail washes should keep a two-week log split by service type first |
| Ordering cycle days | Pairs with a fixed order day; weekly is the common starting point - the longer the cycle, the more the yellow band matters |
| Three-state multiplier | x2 to start; raise to x3 for shaky suppliers or slow logistics seasons |