How MySales Calculates Maximum Stock by expiration date

How MySales Calculates Maximum Stock by expiration date

The Shelf Life parameter in the MySales system defines how many days ahead inventory should be held based on the demand forecast. This mechanism helps prevent overstocking, especially for products with limited shelf life.

image-20260224-164739.png

 

How it works

  • Default value – by default, the shelf life is taken from the PRODUCTS.SHELF_DAYS field.

  • Override – in the Replenishment – Item Parameters screen, the shelf life can be manually overridden. This value has priority over the database value and is currently labeled “Max. DOH” (Maximum Days of Holding).

Calculation logic

  1. The system calculates the daily demand forecast, taking into account the base forecast, seasonal uplifts, promotional uplifts.

  2. The average daily demand is multiplied by the shelf life in days (e.g., 28 days).

  3. The result represents the maximum allowable inventory level (in units) that can be ordered.

Example

  • Forecast horizon: 8 weeks

  • Base forecast: 10 units per week

  • Seasonal uplift: +5 units in weeks 3–4

  • Promotional uplift: +10 units in weeks 5–6

  • Shelf life: 28 days (4 weeks)

Result
Even with demand spikes caused by seasonality or promotions, the system limits the maximum inventory level by calculating it based on the forecast for the next 4 weeks only.

image-20260207-181940.png

The forecast, adjusted for seasonality and promotions, is capped by the shelf life constraint. The chart illustrates how MySales calculates the final forecast and restricts the maximum inventory according to the defined shelf life (28 days), while accounting for seasonal and promotional demand increases.