StockGuardFree Shopify Tools
Runway & Liquidity · Tool 26Free Forever · Zero Server Upload

Days Sales of Inventory (DSI) & Stockout Countdown Calculator

Bridge accounting DSI with warehouse unit countdowns—instantly spotting SKUs about to breach supplier lead time alongside bloated 90+ day overstock.

100% Browser-Only · Zero Server Uploads

Columns: SKU, Units On Hand, Unit Cost, Last 30d COGS, Last 30d Units Sold, Lead Time Days.

Tip: Click Load Sample Faulty CSV above to inspect real Shopify errors before uploading your own export.

Why This Breaks Shopify Stores & How To Prevent It

Why Portfolio-Wide DSI Hides Simultaneous Stockouts and Overstock

Accountants love looking at storewide Days Sales of Inventory (DSI)—for example, "we hold 45 days of inventory, so we look balanced." Unfortunately, storewide averages lie: a 45-day blended DSI often means half your fast movers have 9 days left before going out of stock while your slow movers sit on 160 days of dead weight.

Even single-SKU DSI needs a reality check against supplier lead times. Thirty days of supply sounds safe until you remember your factory requires 35 days for production and ocean transit—putting your Stockout Buffer Margin at -5 days and guaranteeing an out-of-stock gap.

This calculator computes both Financial DSI and Unit Days of Supply per SKU, subtracts supplier Lead Time Days to reveal your true Buffer Margin, and flags every variant as STOCKOUT RISK, OPTIMAL, or OVERSTOCK.

How to Use the DSI & Countdown Tool in 4 Steps

1

Gather 30-Day COGS, Units Sold & On-Hand Counts

Paste SKU on-hand quantities, unit cost, trailing 30-day COGS, trailing 30-day units sold, and supplier lead time days.

2

Compare Financial DSI vs Unit Runway

Verify whether valuation-weighted DSI matches physical unit days of supply across cost changes.

3

Check Stockout Buffer Margin

Inspect Unit Days of Supply minus Lead Time Days—any SKU <= 7 days (especially <= 0) requires urgent replenishment.

4

Export the DSI Countdown CSV

Download the full SKU countdown sheet to coordinate buyers, 3PL replenishment, and cash-flow planning.

Deterministic Logic & Shopify Validation Rules

  • Financial DSI = ((Units On Hand × Unit Cost) / Last 30d COGS) × 30.
  • Unit Days of Supply = Units On Hand / (Last 30d Units Sold / 30).
  • Stockout Buffer Margin = Unit Days of Supply − Lead Time Days.
  • Classification: STOCKOUT RISK when Buffer Margin <= 7 days; OVERSTOCK when Unit Supply or DSI > 90 days (and Buffer Margin > 30 days) or zero 30d sales with stock on hand; otherwise OPTIMAL.

Frequently Asked Questions

Why compute both Financial DSI and Unit Days of Supply?

If your supplier unit cost recently increased or decreased, Last 30d COGS may reflect older landed costs than current stock. Checking both catches valuation distortions while giving warehouse teams exact physical unit days left.

What does a negative Stockout Buffer Margin mean?

A negative buffer (e.g. -5 days) means your current inventory will sell out 5 days BEFORE a purchase order placed today could possibly arrive. You either need air-freight expediting or must prepare for a short out-of-stock window.

What is a healthy DSI target for Shopify brands?

Most fast-moving DTC brands aim for 30 to 60 days of inventory depending on supplier lead times, balancing working-capital liquidity against stockout buffers.

How does StockGuard keep DSI & stock countdowns reliable?

StockGuard prevents sudden CSV zero-outs with its 20% Zero-Out Circuit Breaker and keeps multi-warehouse counts accurate with Multi-Location Move Restock—start free on the $0 Sandbox Plan Forever.

Automated 24/7 Protection

Stop Auditing Spreadsheets by Hand Before Every Shopify Import

Connect your Shopify store and supplier feeds to StockGuard in under two minutes. Simulate every sync in a $0 Sandbox, auto-halt suspicious N/A or blank zero-outs at the 20% Circuit Breaker, and recover any import with 1-Click Rollback.

$0 Sandbox Forever
20% Zero-Out Circuit Breaker
1-Click Rollback & Zero-Write Uninstall
Bundle BOM Sync & Multi-Location Restock

Related Free Shopify Tools

View all in Financial & Forecasting →