How the System Calculates Lead Time

The Update Demand Forecast program updates each product's lead time, based on lead time parameters set at the system, buy line, or product level. Lead time is the number of days it takes for you to prepare and process the purchase order, the vendor to ship the material, and your warehouse to receive the material. The system also includes tagged purchase orders except when the orders are marked as exceptional.

Lead time parameters include the following:

To view a workflow of how the system calculates lead time for a product or buy link click here.

The system uses the following three steps when calculating the lead time:

  1. Checks for an override and determines which lead time to use.

  2. Determines the range of purchase orders to use for calculating the lead time.

  3. Derives the median lead time from the purchase orders.

Determining Which Lead Time to Use

In order to calculate lead time, the system checks for overrides. Overrides can also be set at the system, buy line, or product level. For example, your vendor calls you to tell you they are snowed in and it will take an additional three days to get the items to you. You can use the override settings to change the lead time for those items.

The system makes several checks to determine the lead time:

If the product is...

Then...

in a buy line

If an override lead time is set in Buy Line Maintenance or Override Lead Time Maintenance, the system checks for an expiration date:

  • If no expiration date is set, then the days in the lead time equal the override lead time set at the buy line level.

  • If an expiration date is set and the date has not passed, then the days in the lead time equal the override lead time set at the buy line level.

  • If an expiration date is set, but that date has passed, the system checks for an override lead time at the product level.

If an override lead time is not set at the buy line level, then the system checks for a lead time override at product level.

not in a buy line

The system checks for an override lead time at the product level.

Is an override set at the product level?

Then...

Yes

The system checks for an expiration date:

  • If no expiration date is set, lead time days equals the override set in the Lead Days field, or in the Ovrd LT Days column.

  • If an expiration date is set and the date has not passed, lead time days equals the override set in the Lead Days field, or in the Ovrd LT Days column.

  • If an expiration date is set, but that date has passed, check the Lead Fctr field in Forecast Parameters Maintenance to determine how the system calculates the lead time.

No

The system checks the Lead Fctr field in Forecast Parameters Maintenance to determine how the system calculates the lead time.

If the Lead Fctr field is set to...

Then...

null or blank

The system uses the default lead factor set in the Dflt LFctr field in Buy Line Maintenance.

0

The system checks for a value in the Lead Days field:

  • If Lead Days > 0 (zero) then lead time equals the value entered in the Lead Days field. The system does not calculate a new lead time for the product until Lead Fctr is set to a number other than 0.

> 0

The system determines the lead time by checking a sample of most-recent purchase orders. See Determining the Range of Purchase Orders to Use, below.

Determining the Range of Purchase Orders to Use

If there are no overrides at the product or buy line level, the system checks for a minimum and maximum number of purchase orders to sample for the lead time.

Because recent data is more accurate for estimating lead times, the system checks the lead time derived from recent purchase orders in the forecast period for the product. The system checks a range of purchase orders to derive an accurate median lead time value using the minimum samples up to the lead factor. If there are insufficient purchase orders within the forecast period, the program resorts to a default lead time. For more information, see How Standard and Median Forecasting Works and Entering Forecast Period Parameters to determine your forecast periods.

The system makes several checks to determine which range to use:

  1. The system determines the minimum number of purchase orders in the forecast period to use in calculating a product's lead time. If the Min LF field on the Forecast Parameters Maintenance screen is set to null, then, the system checks:

If...

Then the system...

Product is in a buy line

Uses the value of Min Sample in Buy Line Maintenance to determine the minimum number of purchase orders to use for calculating lead time.

Product is not in a buy line

Uses the value of the Minimum Lead Samples control maintenance record to determine the minimum number of purchase orders to use for calculating lead time.

Otherwise, the system uses the value of Min LF as the minimum number of purchase orders to use for calculating lead time.

  1. The system determines the maximum number of purchase orders in the forecast period to use in calculating a product's lead time. If the Lead Fctr field on the Forecast Parameters Maintenance screen is not 0, then the system checks:

If the Lead Fctr is ...

And the product is in a buy line...

And the product is not in a buy line...

null or blank

if the Dflt LFctr in Buy Line Maintenance is null or 0, lead time is equal to the value of the Default Lead Time Days If Product And Buy Line Have None control maintenance record.

otherwise, use the Dflt LFctr in Buy Line Maintenance to determine the number of purchase orders within the forecast period to use for calculating the product's lead time.

use the value of the Minimum Lead Samples control maintenance record to determine the number of purchase orders within the forecast period to use for calculating the product's lead time.

Otherwise, use the value of Lead Fctr on the Forecast Parameters Maintenance screen as the maximum number of purchase orders to use for calculating lead time.

Deriving Median Lead Time from Purchase Orders

The system then calculates a final lead time based on the determined range of purchase orders. After determining the minimum and maximum samples of purchase orders to check, the system calculates the median lead time for the product.

The system then does the following:

If the number of purchase orders in the forecast period is...

Then...

less than the minimum lead samples

if the product is in buy line, the lead time is equal to the default lead time listed in the Dflt Ld Tm field of Buy Line Maintenance.

 

if the product is not in a buy line, the lead time is equal to the value of the Default Lead Time Days If Product And Buy Line Have None control maintenance record.

equal to the minimum lead samples

the system calculates the lead time days using a number of purchase orders equal to the minimum lead samples.

more than the minimum lead samples but less than the lead factor

the system calculates the lead time days using the available purchase orders within the forecast period.

equal to or greater than the lead factor

the system calculates the lead time days using a number of purchase orders equal to the lead factor.

Note: The values selected for the lead factor and minimum lead samples can be determined at two different levels. For example, the lead factor can be determined at the product level and the minimum lead samples can be determined at the buy line or system level.

  1. Calculates and records the lead time of the selected purchase orders:

Purchase Order Lead Time = Purchase Order Create Date - Purchase Order Receive Date

  1. Selects the median lead time.

This value is the calculated lead time entered on the Lead Days field in Forecast Parameters Maintenance.

See Also:

Entering Lead Time Parameters

Lead Time Overview

Overriding Product Lead Times