Inventory Reorder Calculator
by @leooooooow
Estimate ecommerce reorder timing and quantity using demand, lead time, and safety stock assumptions so teams can set reorder points and reduce stockout risk...
clawhub install inventory-reorder-calculatorπ About This Skill
name: inventory-reorder-calculator description: Estimate ecommerce reorder timing and quantity using demand, lead time, and safety stock assumptions so teams can set reorder points and reduce stockout risk with less guesswork.
Inventory Reorder Calculator
Estimate when to reorder and how much to buy before stock risk turns into lost revenue or excess inventory.
This skill goes beyond plugging numbers into a formula. It applies a structured inventory-planning workflow β demand analysis, lead-time modeling, safety stock calibration, and cash-vs-stockout tradeoff framing β to produce reorder recommendations operators can actually act on.
Quick Reference
| Decision | Key Signal | Strong | Acceptable | Weak | |---|---|---|---|---| | Demand estimation | Historical vs assumed | Uses actual sales data + trend/seasonality | Reasonable assumption documented | Made-up round number | | Safety stock | Risk calibration | Service-level-based (z-score Γ Ο) | Days-of-cover heuristic | No safety stock or arbitrary buffer | | Lead time | Supplier reliability | Avg + variability modeled | Single estimate documented | Ignored or assumed instant | | Reorder point | Formula clarity | ROP = LT demand + safety stock, shown | Calculated but not explained | Just a number with no breakdown | | Order quantity | Constraint-aware | Accounts for MOQ, carton multiples, cash | Basic EOQ or demand Γ days | Arbitrary round number | | Risk framing | Actionable tradeoffs | Stockout cost vs carrying cost quantified | Risks named qualitatively | No risk discussion |
Solves
Most ecommerce teams get reorder planning wrong not because they lack data, but because:
Goal: Produce a reorder recommendation that an ops lead, buyer, or founder can act on today β with the math shown, assumptions visible, and risks framed.
Use when
Do not use when
Inputs
Gather these inputs β mark any gaps explicitly:
Demand data:
Supply data:
Inventory data:
Business context:
See references/safety-stock-guide.md for service level and z-score tables.
See references/demand-analysis-guide.md for demand estimation methods.
Workflow
1. Analyze demand pattern
Before calculating anything, understand the demand signal:
Average daily demand: [X] units/day
Demand std deviation: [Οd] units/day
Trend: [growing / stable / declining at Y% per period]
Seasonality: [none / seasonal with peak in Z months]
Data quality: [strong (90+ days) / moderate (30β90 days) / weak (<30 days)]
If demand data is weak, flag this prominently β the entire calculation depends on this input.
See references/demand-analysis-guide.md for methods to handle trend, seasonality, and sparse data.
2. Model lead time
Supplier lead time is rarely constant. Model both average and variability:
Average lead time: [LT] days
Lead time std deviation: [ΟLT] days
Best case: [X] days
Worst case: [Y] days
Data source: [supplier quote / historical POs / assumption]
Rule: If lead time is based on a supplier quote alone (not historical data), add 20β30% buffer. Suppliers are optimistic.
3. Calculate safety stock
Safety stock bridges the gap between average expectations and real-world variability:
Method 1: Service-level approach (preferred when data exists)
SS = z Γ β(LT Γ ΟdΒ² + dΒ² Γ ΟLTΒ²)Where:
z = service level z-score (1.65 for 95%, 1.96 for 97.5%, 2.33 for 99%)
LT = average lead time in days
Οd = standard deviation of daily demand
d = average daily demand
ΟLT = standard deviation of lead time in days
Method 2: Days-of-cover heuristic (when data is limited)
SS = average daily demand Γ safety daysWhere safety days = typically 5β14 days depending on:
Lead time length (longer LT β more safety days)
Demand variability (higher variability β more safety days)
Stockout cost (higher cost β more safety days)
See references/safety-stock-guide.md for z-score tables and method selection guidance.
4. Calculate reorder point
ROP = (average daily demand Γ average lead time) + safety stock
ROP = (d Γ LT) + SS
Interpret the result: "When on-hand inventory drops to [ROP] units, place a new order."
If in-transit stock exists, use effective inventory position:
Inventory position = on-hand + in-transit - backorders
Trigger reorder when: inventory position β€ ROP
5. Determine reorder quantity
Basic approach:
Reorder quantity = average daily demand Γ days of coverage target
Constraint-adjusted approach:
Raw quantity = demand Γ coverage days
Adjusted for MOQ: max(raw quantity, MOQ)
Adjusted for carton multiple: round up to nearest carton multiple
Adjusted for cash: min(adjusted quantity, budget Γ· unit cost)
Adjusted for storage: min(adjusted quantity, available storage)
EOQ approach (when holding and ordering costs are known):
EOQ = β(2 Γ annual demand Γ order cost / holding cost per unit per year)
See references/output-template.md for the complete output format.
6. Frame the risk tradeoffs
Every reorder decision involves tradeoffs. Make them visible:
| Scenario | Stockout Risk | Cash Tied Up | Coverage | |---|---|---|---| | Conservative (ROP + 20%) | Very low | High | [X] days | | Recommended (ROP) | Low | Moderate | [Y] days | | Aggressive (ROP - 20%) | Moderate | Low | [Z] days |
Quantify when possible:
7. Quality-check the recommendation
Before delivering, verify with assets/reorder-checklist.md:
Output
Return a structured package (see references/output-template.md):
1. Assumptions table - Every input value with source and confidence level
2. Demand and lead-time model - Demand stats, trend, variability - Lead time stats and variability
3. Reorder point calculation - Safety stock with method shown - ROP with formula and plain-English interpretation
4. Reorder quantity recommendation - Raw quantity and constraint-adjusted quantity - Cash impact estimate
5. Risk scenario table - Conservative / recommended / aggressive options - Stockout risk and cash tradeoff for each
6. Action items and review triggers - When to place the next order - When to recalculate (demand shift, supplier change, etc.) - Sensitivity warnings
Quality bar
Strong output should:
What "better" looks like
Better output helps the operator act with confidence:
Examples
Example 1: Growing DTC skincare brand
Inputs:
Output excerpt:
DEMAND MODEL
Avg daily demand: 42 units β adjusted for growth: 46 units/day (8%/mo trend)
Demand Ο: 12 units/day
Data quality: Strong (90 days, consistent)SAFETY STOCK (Service-level method, z=1.65 for 95%)
SS = 1.65 Γ β(21 Γ 12Β² + 46Β² Γ 4Β²)
SS = 1.65 Γ β(3024 + 33856)
SS = 1.65 Γ 192
SS = 317 units β round to 320
REORDER POINT
ROP = (46 Γ 21) + 320 = 966 + 320 = 1,286 units
β οΈ Current stock (890) is BELOW reorder point. Order now.
REORDER QUANTITY
Target coverage: 30 days post-receipt
Raw qty: 46 Γ 30 = 1,380 units
Adjusted for MOQ: 1,380 (above 500 MOQ β)
Adjusted for carton: 1,400 (nearest 50 multiple)
Cash required: 1,400 Γ $8.50 = $11,900
RISK SCENARIOS
| Scenario | Order Qty | Stockout Risk | Cash | Coverage |
|---|---|---|---|---|
| Conservative | 1,700 | <2% | $14,450 | 37 days |
| Recommended | 1,400 | ~5% | $11,900 | 30 days |
| Aggressive | 1,100 | ~12% | $9,350 | 24 days |
Example 2: Seasonal product with unreliable supplier
Inputs:
Output excerpt:
DEMAND MODEL
Current avg: 18 units/day
Seasonal forecast (next 60 days): ramping to ~25 units/day
Using forward estimate: 25 units/day
Demand Ο: 7 units/day (higher variability due to seasonal transition)β οΈ LEAD TIME WARNING
Avg LT: 35 days, but range is 28β50 days (ΟLT β 6 days)
This supplier has high variability β safety stock must account for this.
SAFETY STOCK (z=1.65 for 95%)
SS = 1.65 Γ β(35 Γ 49 + 625 Γ 36) = 1.65 Γ β(1715 + 22500) = 1.65 Γ 156 = 257 units
REORDER POINT
ROP = (25 Γ 35) + 257 = 875 + 257 = 1,132 units
INVENTORY POSITION
On-hand: 520 + in-transit: 300 = 820
820 < 1,132 β β οΈ Below ROP. Order immediately.
Days until stockout (no reorder): 520 Γ· 25 = 20.8 days
In-transit arrives in ~14 days β post-arrival: (520 - 350) + 300 = 470 units
470 Γ· 25 = 18.8 more days β ~33 days total before stockout
ACTION: Order now. Lead time of 35 days means new stock arrives just as
current + in-transit runs out. Any delay = stockout during peak season.
Common mistakes
1. Using averages without variability β "We sell 20/day" ignores that some days are 8 and others are 35 2. Trusting supplier lead times β Quoted lead times are best-case; actual delivery is often 20β50% longer 3. Forgetting in-transit inventory β Reordering when stock is low but 1,000 units are already shipping 4. Ignoring MOQ and carton constraints β Calculating a perfect 347-unit order when MOQ is 500 5. No cash flow context β Recommending a $50K order to a business with $30K available 6. Static one-time calculation β Giving a number without saying when it should be recalculated 7. Safety stock = gut feel β Using "2 weeks of safety stock" without connecting it to demand variability 8. Not adjusting for trend β Using historical averages for a product that's growing 15%/month
Resources
references/output-template.md β Complete structured output templatereferences/safety-stock-guide.md β Service levels, z-scores, and safety stock methodsreferences/demand-analysis-guide.md β Demand estimation, trend adjustment, and seasonality handlingassets/reorder-checklist.md β Pre-delivery quality checklistπ‘ Examples
Example 1: Growing DTC skincare brand
Inputs:
Output excerpt:
DEMAND MODEL
Avg daily demand: 42 units β adjusted for growth: 46 units/day (8%/mo trend)
Demand Ο: 12 units/day
Data quality: Strong (90 days, consistent)SAFETY STOCK (Service-level method, z=1.65 for 95%)
SS = 1.65 Γ β(21 Γ 12Β² + 46Β² Γ 4Β²)
SS = 1.65 Γ β(3024 + 33856)
SS = 1.65 Γ 192
SS = 317 units β round to 320
REORDER POINT
ROP = (46 Γ 21) + 320 = 966 + 320 = 1,286 units
β οΈ Current stock (890) is BELOW reorder point. Order now.
REORDER QUANTITY
Target coverage: 30 days post-receipt
Raw qty: 46 Γ 30 = 1,380 units
Adjusted for MOQ: 1,380 (above 500 MOQ β)
Adjusted for carton: 1,400 (nearest 50 multiple)
Cash required: 1,400 Γ $8.50 = $11,900
RISK SCENARIOS
| Scenario | Order Qty | Stockout Risk | Cash | Coverage |
|---|---|---|---|---|
| Conservative | 1,700 | <2% | $14,450 | 37 days |
| Recommended | 1,400 | ~5% | $11,900 | 30 days |
| Aggressive | 1,100 | ~12% | $9,350 | 24 days |
Example 2: Seasonal product with unreliable supplier
Inputs:
Output excerpt:
DEMAND MODEL
Current avg: 18 units/day
Seasonal forecast (next 60 days): ramping to ~25 units/day
Using forward estimate: 25 units/day
Demand Ο: 7 units/day (higher variability due to seasonal transition)β οΈ LEAD TIME WARNING
Avg LT: 35 days, but range is 28β50 days (ΟLT β 6 days)
This supplier has high variability β safety stock must account for this.
SAFETY STOCK (z=1.65 for 95%)
SS = 1.65 Γ β(35 Γ 49 + 625 Γ 36) = 1.65 Γ β(1715 + 22500) = 1.65 Γ 156 = 257 units
REORDER POINT
ROP = (25 Γ 35) + 257 = 875 + 257 = 1,132 units
INVENTORY POSITION
On-hand: 520 + in-transit: 300 = 820
820 < 1,132 β β οΈ Below ROP. Order immediately.
Days until stockout (no reorder): 520 Γ· 25 = 20.8 days
In-transit arrives in ~14 days β post-arrival: (520 - 350) + 300 = 470 units
470 Γ· 25 = 18.8 more days β ~33 days total before stockout
ACTION: Order now. Lead time of 35 days means new stock arrives just as
current + in-transit runs out. Any delay = stockout during peak season.