How MySales Calculates Lost Demand
Lost Demand is the difference between forecasted demand and actual sales during periods when sales were limited by product unavailability (Out of Stock, OOS), rather than by an actual decrease in demand.
MySales helps determine how many units customers could have purchased if the product had remained available.
1. How MySales Calculates Lost Demand
First, MySales generates a demand forecast without constraints related to product availability — meaning it estimates what sales could have been if the product had remained continuously available.
The system then compares:
Forecasted demand — the expected number of units sold.
Actual sales — how many units were actually sold.
Product availability — stock levels and OOS indicators.
If the product was unavailable and actual sales were lower than the forecast, the difference may be counted as lost demand.
2. When Lost Demand Occurs
MySales accounts for lost demand only when all of the following conditions are met simultaneously:
Forecasted demand exceeds actual sales.
The product stock level is zero or below the minimum quantity required for a sale.
There are no other reasons for sales restrictions, including:
Store closure.
Removal of the SKU from the assortment.
Errors in the source data.
Important: if the product was available but did not sell, the absence of sales is not considered lost demand. In this case, actual demand may be zero.
3. Calculation Formula
For a specific SKU in a store on day D, the following simplified formula is used:
Lost Demand = max(0, Forecasted Demand − Actual Sales)The formula applies if the stock level on day D = 0 and the other conditions for identifying lost demand are met.
Otherwise:
Lost Demand = 0
Thus, the system estimates potentially lost sales only when there are indications of a product shortage.
4. What Data Is Considered in the Forecast
MySales does not use actual sales on OOS days as a complete representation of real demand.
The forecast takes into account:
Seasonality — regular seasonal fluctuations.
Trend — overall sales dynamics.
Price — the impact of product price on demand.
Promotions — the impact of promotional campaigns and discounts.
Weather — if the relevant data is connected.
Sales history during product availability — sales data without restrictions caused by OOS.
Similar SKUs and stores — to estimate demand using comparable data.
Result: the forecast is not underestimated simply because the product was unavailable on the shelf.
5. How MySales Prevents Overestimation of Lost Demand
To avoid unjustified overestimation of forecasted demand, MySales takes the following situations into account:
Prolonged OOS: the impact of extended product unavailability is reduced.
New SKUs: a limited forecast based on analogous products is applied.
Unstable demand: the model reduces its confidence level in the forecast.
No demand despite product availability: if sales remained at zero even when the product was available, lost demand equals zero.
This helps distinguish actual product shortages from situations where demand was genuinely low or absent.
6. Where Lost Demand Is Used
Calculated lost demand is used in several MySales processes:
Area | How It Is Used |
|---|---|
Forecasting | Adjusts the forecast by restoring the estimate of demand that was not fulfilled due to OOS |
Auto-Ordering | Helps calculate product requirements to reduce the risk of repeated OOS |
Availability KPIs | Used to analyze OSA / Availability indicators |
Model Training | Helps estimate actual demand without distortion caused by product unavailability |
7. How Lost Demand Differs from Actual Sales
Lost demand is not added to actual sales.
Actual sales remain unchanged because they represent the quantity of products actually sold.
Lost demand is used as a separate analytical indicator that helps:
Explain differences between the forecast and actual sales.
Assess the impact of product unavailability.
Improve future forecasting and ordering decisions.
8. Example of Lost Demand Calculation
Let's consider the sales of one SKU in a store over four days.
Day | Forecast | Sales | Stock | Lost Demand |
|---|---|---|---|---|
Mon | 10 | 10 | Greater than 0 | 0 |
Tue | 12 | 5 | 0 | 7 |
Wed | 11 | 0 | 0 | 11 |
Thu | 9 | 9 | Greater than 0 | 0 |
Total | 42 | 24 | — | 18 |
How to interpret the result:
On Monday and Thursday, the product was available, so lost demand equals zero.
On Tuesday, the forecast was 12 units, but only 5 units were sold due to product unavailability. Lost demand was 7 units.
On Wednesday, the product was unavailable, while forecasted demand was 11 units. Lost demand was 11 units.
Over the four days, actual sales totaled 24 units, while estimated lost demand was 18 units.
This means that potential demand was higher than actual sales due to product unavailability.
Result
MySales helps identify when low sales are caused by insufficient product availability rather than a decrease in customer demand.
Accounting for lost demand enables more accurate estimation of actual product requirements, improves forecasting, and supports informed inventory replenishment decisions.