HiveBee.Ai
Start for free
// statistics explained

Every metric. With its formula.

What every number in the HiveBee dashboard means, why it exists and how it is calculated. Each page is worked through with a small example shop. Card and column names appear exactly as they do in the dashboard.

Watches stock live, learns from real orders how fast each product sells, and tells you what to restock first, what running out is costing you, and what's just sitting on the shelf.

01What the page is for

Running out of a product that sells well costs money every day it's gone. Keeping stock of a product nobody buys ties up money too.

The page answers two questions:

  1. What should the shop restock, and how urgently?
  2. What is stock costing the shop? Sales missed while sold out, shoppers searching for sold-out products, and stock that doesn't move.

Everything comes from the shop's own stock in Shopify, its orders and its searches in HiveBee. Only money amounts such as revenue at risk and est. unmet demand are estimates, and each shows its sum.

Each size or colour is judged on its own (a "variant"). The 1 kg jar can run out while the 350 g jar is fine.

02The example: a candle shop

ProductPriceIn stockSold in the last 30 days
Lavender candle€25050, then ran out 5 days ago (2 a day)
Rose candle€20330 (14 of them in the last 7 days)
Vanilla candle€25630 (sold out for 10 of the 30 days)
Gift box€6086
Matches€2.5020090
Christmas candle€40400 (1 in the last 90 days, listed a year ago)
Pine candle€22.5000 (nothing sold for months)

We'll use these numbers all the way through.

03Which data is used

DataWhere it comes fromHow fresh
StockShopify, all locations added upLive, within seconds
OrdersShopifyLive; corrected every night
SearchesHiveBee search box and chatLive
Sales rateWorked out from the ordersEvery night, around 3 AM shop time

Which variants count: only variants of active products whose stock Shopify tracks. Drafts, archived products and "don't track stock" variants are left out. You can't run out of something Shopify doesn't count.

Left out of sales, and why:

Left outWhy
Cancelled ordersNo sale happened
Test ordersNot real customers
Refunded unitsThe customer didn't keep it

04Sales rate: the base of everything

Whathow many units a variant sells per day.

Whyevery alert depends on it. "6 left" is urgent if it sells 3 a day and fine if it sells 1 a month.

Howunits sold in the last 30 days ÷ the days it could be bought in those 30 days.

Days when it was sold out don't count. A product can't sell while it's gone, and counting those days would make it look slower than it is.

Candle shop (Vanilla): 30 sold, but sold out for 10 days → 30 ÷ 20 = 1.5 a day. Counting all 30 days would wrongly give 1 a day.

Three safety rules

So thin or unusual sales don't fake demand:

RuleWhyPage shows
Fewer than 2 orders in 30 days → no rateOne order isn't a pattern"Too few sales"
If the last 7 days sold faster (and at least 5 units), that rate is usedCatches a sudden rush before it empties the shelf"selling faster lately"
One big order line counts at most 5 units (or 3× the usual order size, if bigger)One bulk order isn't everyday demand–
Candle shop, Rose: 30 in 30 days is 1 a day, but 14 in the last 7 days is 2 a day → 2 a day is used.
Candle shop, bulk order: a hotel orders 60 Vanilla candles at once. Customers usually buy 1, so it counts as 5.

05Days left

Whathow many days the stock lasts at the current sales rate.

Howstock ÷ sales rate.

Candle shop: Rose: 3 ÷ 2 = 1.5 days. Vanilla: 6 ÷ 1.5 = 4 days.

Days left changes the moment stock changes (a sale, a restock), using last night's sales rate.

06Each variant's status

Every variant gets one status. They're checked in this order, and the first one that fits wins.

#StatusWhenCandle shop
1Out of stockCan't be bought nowLavender, Pine
2Oversold"Continue selling when out of stock" is on and stock is below 0–
3CriticalRuns out within 2 daysRose (1.5 days)
4AttentionRuns out within 14 daysVanilla (4 days)
5Low stock10 units or fewer, and it sold in the last 90 daysGift box (8 units)
6HealthyNone of the aboveMatches

The 2, 14 and 10 are defaults. The shop can change them (section "Alert rules").

Why the order matters: the Gift box has only 8 left, but at 0.2 a day that lasts 40 days. It isn't urgent, so it's only "Low stock".

Why "sold in the last 90 days" for Low stock: a size that hasn't sold in 3 months isn't running low. It's just small stock.

Stock at exactly 0 with "continue selling" on is a backorder, not oversold. Oversold means below 0.

07The 4 cards at the top

Critical – Restock now

Whatvariants to reorder today.

Whythese are losing sales now, or will be within 2 days.

Howthree groups added up, shown under the number:

  • out of stock and still selling when it ran out;
  • oversold;
  • running out within 2 days.
Candle shop: Lavender (out, was selling 2 a day) + Rose (1.5 days) = 2. "1 out of stock · 0 oversold · 1 running out".

Pine isn't counted. It's sold out, but it wasn't selling, so it's probably discontinued. It still appears under Restock › Out of stock.

Needs attention

Whatvariants that run out soon, but not today.

Whytime to plan the reorder before it becomes urgent.

Howdays left more than 2 and up to 14.

Candle shop: Vanilla, 4 days → 1.

Invisible demand

Whatsearches for products that were sold out at the time, last 30 days.

Whysales numbers can't show demand for something nobody could buy. Searches can.

Howsee the "Invisible demand" section.

Candle shop: 50 searches, about €25 of unmet demand.

Dead stock

Whatstock that isn't selling.

Whymoney sits on the shelf. Better to clear it than reorder it.

Howsee the "Dead stock" section.

Candle shop: Christmas candle → 1 variant, €1,600.

08The Restock table

One row per variant to act on, sorted by urgency: sold out and oversold first, then fewest days left, then most money at risk.

Views: Needs action (default: Critical + Attention + Low stock), Critical, Attention, Low stock, Out of stock.

ColumnMeaningExample
In stockUnits across all locations20
Sales ratePer day, or per week/month for slow sellers"5.3 a day", "Too few sales"
Runs outWhen, or since when"4 days", "Out since Nov 5"
Revenue at risk (30 days)Sales missed in the next 30 days without a restock€975
StatusFrom the "Status" sectionAttention

Revenue at risk (30 days)

Whatthe sales the shop will miss in the next 30 days if it doesn't restock.

Whyit turns "running low" into money, so the shop knows which restock matters most.

Howsales rate × price × the days it will be sold out within the next 30 days.

Candle shop:
VariantSumAt risk
Lavender (already out → all 30 days)2 a day × €25 × 30€1,500
Rose (out after 1.5 days → 28.5 days)2 × €20 × 28.5€1,140
Vanilla (out after 4 days → 26 days)1.5 × €25 × 26€975
Gift box, Matches (last over 30 days)–€0
Total€3,615

For a sold-out variant, the sales rate is the one it had when it ran out. It's frozen then, because a sold-out item can't sell any more and its live rate would drop day by day.

09Invisible demand

Whatshoppers searching for a product that was completely sold out.

When a search counts:

  • its best match (the most relevant result) was sold out, and
  • every size/colour of that product was sold out.

If even one size was left, the shopper could still buy, so it doesn't count. Each search counts once, for one product, so the rows add up to the total.

Est. unmet demand

Whatroughly how much those searches would have been worth.

Howsearches × the shop's search conversion × the product's lowest price.

Search conversion = the share of searches that end in a purchase. It's taken from the same period, or from the last 90 days if the period has fewer than 100 searches (too few to trust).

Candle shop: "lavender candle" was searched 50 times while sold out. 2% of searches end in a purchase. 50 × 2% × €25 = ≈ €25.

Shown with "≈" because it's an estimate.

Period: last 7, 30 or 90 days, this month, last month (default: last 30 days).

10Stockout history

Whatevery time a variant sold out, and the sales it likely cost.

Whyshows which products run out again and again, and what that cost.

Howdays sold out × sales rate when it ran out × price then.

Candle shop: Lavender, out for 5 days so far, was selling 2 a day: 5 × 2 × €25 = €250 (and growing until restocked).

Revenue at risk vs. sales lost: revenue at risk looks forward (next 30 days). Sales lost looks back (what already happened).

Rules:

RuleWhy
Stockouts under 1 hour aren't listedUsually the gap between the last sale and the restock being entered
Products already sold out when tracking began aren't listedStart and loss are unknown. The page says so and points to Restock › Out of stock
"Still out" badgeNot restocked yet
"Longest" badgeThe single longest stockout (none on a tie)

Period: same menu as Invisible demand (default: last 90 days).

11Dead stock

Whatstock that has been around long enough and hardly sold.

Rule (defaults): in stock now, listed in Shopify 90+ days ago, and 2 or fewer sold in the last 90 days.

Why "listed 90+ days ago": a product added last week hasn't had the chance to sell.

Value: stock × selling price. Selling price, because cost is often not entered in Shopify.

Candle shop: Christmas candle, listed a year ago, 1 sold in 90 days, 40 in stock: 40 × €40 = €1,600.

The page waits until it can judge fairly:

MessageWhy
"Needs N more days of order history"Orders don't cover the whole window yet; products would look unsold
"Ready after tonight's sales figures"First sales figures not worked out yet
"No sales recorded in the last 90 days"The whole shop sold nothing, so everything would count as dead; nothing is listed

12Alert rules: the shop's own settings

The merchant can change 5 numbers under Alert rules. They apply to that shop only and take effect immediately.

RuleDefaultAllowedChanges
Restock now2 days1–7When a variant becomes Critical
Needs attention14 daysMore than Restock now, up to 60When it becomes Attention
Low stock: at or below10 units0–1,000When a selling variant becomes Low stock
Dead stock: sold at most2 units0–20How few sales make stock dead
Dead stock: in the last90 days30, 60, 90 or 180The dead-stock window
Candle shop: if the shop takes 5 days to receive stock, it sets Restock now to 5. Vanilla (4 days left) moves from Attention to Critical.

Only the merchant can change the rules, in the Shopify app.

13When the numbers update

UpdatesWhat
Within secondsStock, out of stock, oversold, days left, new stockouts, searches for sold-out products, new orders
Every night, ~3 AM shop timeSales rates; corrections (cancellations, edits, missed updates); a full stock comparison with Shopify

So the page isn't only updated at night. Only the sales rate is.

Why a nightly check at all: Shopify doesn't guarantee every live update arrives. The nightly check compares everything with Shopify and fixes any difference. A missed update costs at most a day, never correctness.

New shops: the first check starts within an hour of install. Until then the cards show "-" with "After your first check", not 0, because 0 would wrongly say all is fine.

The line above the cards says how fresh each part is, e.g.:

Stock: live · Orders up to Today, 3:02 AM · Sales figures Today, 3:02 AM · Next check Tomorrow, 3:02 AM

14Good to know

  • Each size or colour counts on its own. One sold-out size of a product is a real alert.
  • Searches never change the Restock table. Restock is based on sales; searches only feed Invisible demand.
  • Sold out but not selling isn't in Restock now (probably discontinued). It's under Out of stock.
  • No lead times or reorder quantities: Shopify has no data for them.
  • No email or Slack alerts: everything is in the dashboard.
  • Dead stock can look huge in shops that enter placeholder stock (e.g. 10 of every made-to-order item). HiveBee can't tell that apart from real stock.
  • The numbers are checked: a separate program recalculates everything from the raw orders and stock and compares the result with the page.

15Everything on one page

NameIn one sentenceCalculationCandle shop
Sales rateUnits sold per dayUnits in 30 days ÷ days it could be boughtVanilla: 30 ÷ 20 = 1.5/day
Days leftHow long stock lastsStock ÷ sales rateVanilla: 6 ÷ 1.5 = 4 days
Critical – Restock nowReorder todayOut of stock (still selling) + oversold + runs out within 2 days2
Needs attentionReorder soonRuns out in more than 2, up to 14 days1
Low stockFew left, still selling10 or fewer, sold in 90 days, not more urgent1
Revenue at risk (30 days)Sales missed without a restockSales rate × price × days out in next 30€3,615
Invisible demandSearches for sold-out productsBest match fully sold out50 searches
Est. unmet demandWhat those searches were worthSearches × search conversion × price≈ €25
Stockouts / sales lostWhat sell-outs already costDays out × rate when it ran out × price€250
Dead stockStock that doesn't moveIn stock, listed 90+ days, sold 2 or fewer1 · €1,600
Question about a number?
Write to us and we'll work through it together.
Inventory Alerts explained: every metric with its formula - HiveBee