> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solya.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Stock-out risk

> Spot variants about to run out, ranked by days of supply, and restock or rebalance before they do.

**Stock-out risk** flags variants likely to run out soon, based on how much stock you have
versus how fast it's selling.

## How it's measured

```
days of supply = closing stock ÷ average daily sales
```

Stock and velocity are summed across shops and sizes for each variant, then the ratio is
computed. Variants are ranked by **urgency** — fewest days of supply first.

## Status tiers

| Status       | Days of supply | Meaning                     |
| ------------ | -------------- | --------------------------- |
| **Critical** | \< 7           | Act now.                    |
| **Warning**  | 7–13           | Monitor and plan a restock. |
| **Healthy**  | ≥ 14           | No immediate concern.       |

The **velocity window** (how "average daily sales" is measured) defaults to the last 30
days.

## Where to find it

Add the **Stock-out risk** table block to a [dashboard](/en/analytics/dashboards). It
shows, per at-risk variant: status, product image, variant and brand, **days of supply**,
and closing stock (with variant code, product name and average daily sales available as
extra columns). You can filter by **brand**, **shop**, and **status**.

## Acting on it

From a row, launch the right plan:

* **[Restock](/en/inventory-plans/restock)** — order more from the supplier.
* **[Rebalance](/en/inventory-plans/rebalance)** — pull stock from a shop that has a
  surplus.

<Note>
  For automation, alert on the `DAYS_OF_STOCK` or `RISK_SCORE`
  [alert metrics](/en/signals/alerts), or let a score-driven
  [workflow](/en/automation/workflows) build the restock/rebalance plan for you.
</Note>
