<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/td/onlinemanual/000324" xml:lang="en">
   <Header>
      <Title>To calculate purchase item lead time</Title>
      <Keyword type="header" order="d1e1289832">
         <Level1>lead time calculation</Level1>
      </Keyword>
      <Keyword type="header" order="d1e1289835">
         <Level1>purchase item lead time</Level1>
      </Keyword>
      <Keyword type="header" order="d1e1289838">
         <Level1>lead time</Level1>
      </Keyword>
   </Header>
   <GeneralSection>
      <Paragraph>In the <GUIRef href="/baanerp/td/ipu/tdipu0110m000" role="session">Items - Purchase Business Partner (tdipu0110m000)</GUIRef> and <GUIRef href="/baanerp/td/pur/tdpur3102m000" role="session">Purchase Contract Line Logistic Data (tdpur3102m000)</GUIRef> sessions, you can specify and
		calculate several lead times for a purchased item and business partner
		combination.</Paragraph>
      <List>
         <ListIntro>In these sessions:</ListIntro>
         <ListItem>The calculated lead time is displayed in the <Link href="/baanerp/td/ipu/tdipu0110m000#tdipu010.cldt" role="formfield">Calculated Lead Time (Days)</Link> field.</ListItem>
         <ListItem>The calculated full lead time is displayed in the <Link href="/baanerp/td/ipu/tdipu0110m000#tdipu010.cflt" role="formfield">Calculated Full Lead Time (Days)</Link> field.</ListItem>
      </List>
      <Paragraph>To calculate the (full)
		lead time, LN first
		determines the average number of available hours for each working day based on
		the <Link href="/baanerp/tc/glossary/glossary#StandaCalend_tc" role="glossary">standard calendar</Link> for the <Link href="/baanerp/tc/glossary/glossary#ResoActiType_tc" role="glossary">availability type</Link>, which is
		specified in the <GUIRef href="/baanerp/td/pur/tdpur0100m000#tdpur000.ract" role="manual">Default Availability Type</GUIRef> field of the <GUIRef href="/baanerp/td/pur/tdpur0100m000" role="session">Purchase Parameters (tdpur0100m000)</GUIRef> session.</Paragraph>
      <ProcedureList>
         <ListIntro>To calculate the average available hours for each available
		  day, LN takes the
		  following steps:</ListIntro>
         <ListItem>Determines the
		  available hours for each available day, based on the start time and end time.</ListItem>
         <ListItem>Calculates the total
		  available hours in a week by adding up the available hours for each day.</ListItem>
         <ListItem>Divides the total
		  available hours in a week by the number of available days in a week. This
		  results in the average available hours for each available day.</ListItem>
      </ProcedureList>
      <List>
         <ListIntro>Using the average available hours for each available day, LN next converts the
		  lead time components to hours and calculates the lead time by adding up the
		  following lead time components from the <GUIRef href="/baanerp/td/ipu/tdipu0110m000" role="session">Items - Purchase Business Partner (tdipu0110m000)</GUIRef>/ <GUIRef href="/baanerp/td/pur/tdpur3102m000" role="session">Purchase Contract Line Logistic Data (tdpur3102m000)</GUIRef> sessions:</ListIntro>
         <ListItem> 
            <Link href="/baanerp/td/glossary/glossary#000040" role="glossary">Internal processing time</Link>
         </ListItem>
         <ListItem> 
            <Link href="/baanerp/td/glossary/glossary#000041" role="glossary">Safety time</Link>
         </ListItem>
         <ListItem> 
            <Link href="/baanerp/td/glossary/glossary#000011" role="glossary">Supply time</Link> or <Link href="/baanerp/td/glossary/glossary#000013" role="glossary">full supply time</Link>
         </ListItem>
         <ListItem>
            <GUIRef href="/baanerp/td/ipu/tdipu0110m000#transit.time" role="manual">Transportation Time (Days)</GUIRef>. <List>
               <ListIntro>LN retrieves the transportation time in one of the following ways:</ListIntro>
               <ListItem>If <GUIRef href="/baanerp/fm" role="package">Freight</GUIRef> is implemented, which you can define in the <GUIRef href="/baanerp/tc/com/tccom0500m000" role="session">Implemented Software Components (tccom0500m000)</GUIRef> session, calculation of the
				transportation time is based on <Link href="/baanerp/fm/glossary/glossary#000067" role="glossary">carrier</Link>, and <Link href="/baanerp/tc/glossary/glossary#Routes_tc" role="glossary">routes</Link>. Route plans and <Link href="/baanerp/fm/glossary/glossary#000071" role="glossary">service levels</Link> are not known at this point in time. <ProcedureList>
                     <ListIntro>LN performs the following steps to retrieve the transportation
					 time.</ListIntro>
                     <ListItem>If the route, the carrier, the origin, and the
					 destination addresses are known, LN first searches for <Link href="/baanerp/fm/glossary/glossary#000024" role="glossary">route plans</Link> and then for <Link href="/baanerp/fm/glossary/glossary#000031" role="glossary">standard routes</Link> with matching routes, carriers, and
					 addresses.</ListItem>
                     <ListItem>If more than one matching route plan or standard route
					 is found, LN selects
					 the route plan or standard route with a <Link href="/baanerp/fm/glossary/glossary#000004" role="glossary">transport means group</Link> that matches the transport means
					 group of the carrier.</ListItem>
                     <ListItem>If LN still finds more than one route plan or standard route, route
					 plans have priority over standard routes. If only standard routes are found,
					 the standard route is selected following the settings of the <Link href="/baanerp/fm/lbd/fmlbd0100m000#fmlbd000.crsl" role="formfield">Carrier Selection Criterion</Link> parameter in the <GUIRef href="/baanerp/fm/lbd/fmlbd0100m000" role="session">Freight Planning Parameters (fmlbd0100m000)</GUIRef> session.</ListItem>
                     <ListItem>If LN still finds more than one route plan, it selects the first one it
					 encounters in the database.</ListItem>
                  </ProcedureList>
               </ListItem>
               <ListItem>If <GUIRef href="/baanerp/fm" role="package">Freight</GUIRef> is not implemented, LN takes the
				transportation time between the ship-from business partner's address and the
				receiving warehouse's address, based on a relevant distance table (if
				available) in the <Link href="/baanerp/tc/com/tccom4137s000" role="session">Distance Table by City (tccom4137s000)</Link> session or in the <Link href="/baanerp/tc/com/tccom4138s000" role="session">Distance Table by ZIP Code/Postal Code (tccom4138s000)</Link> session. From which of these two sessions the
				transportation time is retrieved, depends on the value of the <GUIRef href="/baanerp/tc/com/tccom0000s000#tccom999.dstt" role="manual">Usage Distance Tables</GUIRef> field in the <GUIRef href="/baanerp/tc/com/tccom0000s000" role="session">COM Parameters (tccom0000s000)</GUIRef> session.</ListItem>
            </List>
         </ListItem>
      </List>
      <Paragraph>Using the average
		available hours for each available day, LN converts the
		calculated lead time from hours into days. If a fraction of a day is left, LN rounds this to a
		whole day. This results in a calculated lead time that is always expressed in
		whole days.</Paragraph>
      <GeneralSection>
         <SectionTitle>Examples</SectionTitle>
         <ExampleSection>
            <SectionTitle>Example- purchase availability
			 type</SectionTitle>
            <Paragraph>The <GUIRef href="/baanerp/td/pur" role="module">Purchase Control</GUIRef> availability type is PURAT. The standard calendar for availability type PURAT
			 is as follows:</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="6">
                  <TR no="1" isLast="false">
                     <TH rowspan="1" colspan="1">Day</TH>
                     <TH rowspan="1" colspan="1">Available</TH>
                     <TH rowspan="1" colspan="1">Start time</TH>
                     <TH rowspan="1" colspan="1">End time</TH>
                     <TH rowspan="1" colspan="1">Available hours</TH>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD rowspan="1" colspan="1">Monday</TD>
                     <TD rowspan="1" colspan="1">Yes</TD>
                     <TD rowspan="1" colspan="1">8:30:00</TD>
                     <TD rowspan="1" colspan="1">16:30:00</TD>
                     <TD rowspan="1" colspan="1">8</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD rowspan="1" colspan="1">Tuesday</TD>
                     <TD rowspan="1" colspan="1">Yes</TD>
                     <TD rowspan="1" colspan="1">8:00:00</TD>
                     <TD rowspan="1" colspan="1">16:00:00</TD>
                     <TD rowspan="1" colspan="1">8</TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD rowspan="1" colspan="1">Wednesday</TD>
                     <TD rowspan="1" colspan="1">Yes</TD>
                     <TD rowspan="1" colspan="1">9:00:00</TD>
                     <TD rowspan="1" colspan="1">16:30:00</TD>
                     <TD rowspan="1" colspan="1">7.5</TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD rowspan="1" colspan="1">Thursday</TD>
                     <TD rowspan="1" colspan="1">Yes</TD>
                     <TD rowspan="1" colspan="1">8:00:00</TD>
                     <TD rowspan="1" colspan="1">16:30:00</TD>
                     <TD rowspan="1" colspan="1">8.5</TD>
                  </TR>
                  <TR no="6" isLast="true">
                     <TD rowspan="1" colspan="1">Friday</TD>
                     <TD rowspan="1" colspan="1">Yes</TD>
                     <TD rowspan="1" colspan="1">8:00:00</TD>
                     <TD rowspan="1" colspan="1">16:00:00</TD>
                     <TD rowspan="1" colspan="1">8</TD>
                  </TR>
               </TBODY>
            </TABLE>
            <Paragraph>Based on the above
			 standard calendar, a total of 40 hours is available for each week. For each
			 available day, on average eight hours are available, which equates to 40
			 available hours for each week/five available days for each week.</Paragraph>
            <Paragraph>Using the average of
			 eight available hours for each available day, LN converts the
			 following lead time components into lead times that are expressed in hours.</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="4">
                  <TR no="1" isLast="false">
                     <TH rowspan="1" colspan="1">Lead time component</TH>
                     <TH rowspan="1" colspan="1">Lead time</TH>
                     <TH rowspan="1" colspan="1">Lead time in hours</TH>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD rowspan="1" colspan="1">Internal processing time</TD>
                     <TD rowspan="1" colspan="1">6 hours</TD>
                     <TD rowspan="1" colspan="1">6 hours</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD rowspan="1" colspan="1">Safety time</TD>
                     <TD rowspan="1" colspan="1">6 hours</TD>
                     <TD rowspan="1" colspan="1">6 hours</TD>
                  </TR>
                  <TR no="4" isLast="true">
                     <TD rowspan="1" colspan="1">(Full) supply time</TD>
                     <TD rowspan="1" colspan="1">1 day</TD>
                     <TD rowspan="1" colspan="1">8 hours</TD>
                  </TR>
               </TBODY>
            </TABLE>
         </ExampleSection>
         <Note>
            <SectionTitle>Note</SectionTitle>
            <Paragraph>The <GUIRef href="/baanerp/td/ipu/tdipu0110m000#transit.time" role="manual">Transportation Time (Days)</GUIRef> is converted by using the <GUIRef href="/baanerp/tc/com/tccom0000s000#tccom999.ract" role="manual">Availability Type for Carrying Goods</GUIRef>, as entered in the <GUIRef href="/baanerp/tc/com/tccom0000s000" role="session">COM Parameters (tccom0000s000)</GUIRef> session, instead of the purchase availability type.</Paragraph>
         </Note>
         <ExampleSection>
            <SectionTitle>Example- availability type for carrying
			 goods</SectionTitle>
            <Paragraph>The <GUIRef href="/baanerp/tc/com/tccom0000s000#tccom999.ract" role="manual">Availability Type for Carrying Goods</GUIRef> is EXPO. The standard
			 calendar for availability type EXPO is as follows:</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="6">
                  <TR no="1" isLast="false">
                     <TH rowspan="1" colspan="1">Day</TH>
                     <TH rowspan="1" colspan="1">Available</TH>
                     <TH rowspan="1" colspan="1">Start time</TH>
                     <TH rowspan="1" colspan="1">End time</TH>
                     <TH rowspan="1" colspan="1">Available hours</TH>
                  </TR>
                  <TR no="2" isLast="false">
                     <TD rowspan="1" colspan="1">Monday</TD>
                     <TD rowspan="1" colspan="1">Yes</TD>
                     <TD rowspan="1" colspan="1">8:00:00</TD>
                     <TD rowspan="1" colspan="1">17:00:00</TD>
                     <TD rowspan="1" colspan="1">9</TD>
                  </TR>
                  <TR no="3" isLast="false">
                     <TD rowspan="1" colspan="1">Tuesday</TD>
                     <TD rowspan="1" colspan="1">Yes</TD>
                     <TD rowspan="1" colspan="1">8:00:00</TD>
                     <TD rowspan="1" colspan="1">17:00:00</TD>
                     <TD rowspan="1" colspan="1">9</TD>
                  </TR>
                  <TR no="4" isLast="false">
                     <TD rowspan="1" colspan="1">Wednesday</TD>
                     <TD rowspan="1" colspan="1">Yes</TD>
                     <TD rowspan="1" colspan="1">9:00:00</TD>
                     <TD rowspan="1" colspan="1">17:30:00</TD>
                     <TD rowspan="1" colspan="1">8,5</TD>
                  </TR>
                  <TR no="5" isLast="false">
                     <TD rowspan="1" colspan="1">Thursday</TD>
                     <TD rowspan="1" colspan="1">Yes</TD>
                     <TD rowspan="1" colspan="1">8:00:00</TD>
                     <TD rowspan="1" colspan="1">17:30:00</TD>
                     <TD rowspan="1" colspan="1">9.5</TD>
                  </TR>
                  <TR no="6" isLast="true">
                     <TD rowspan="1" colspan="1">Friday</TD>
                     <TD rowspan="1" colspan="1">Yes</TD>
                     <TD rowspan="1" colspan="1">8:00:00</TD>
                     <TD rowspan="1" colspan="1">17:00:00</TD>
                     <TD rowspan="1" colspan="1">9</TD>
                  </TR>
               </TBODY>
            </TABLE>
            <Paragraph>Based on the above
			 standard calendar , a total of 45 hours is available for each week. For each
			 available day, on average nine hours are available, which equates to 45
			 available hours for each week/five available days for each week.</Paragraph>
            <Paragraph>Using the average of
			 nine available hours for each available day, LN converts the <GUIRef href="/baanerp/td/ipu/tdipu0110m000#transit.time" role="manual">Transportation Time (Days)</GUIRef> into a lead time that is
			 expressed in hours.</Paragraph>
            <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
               <TBODY noTR="2">
                  <TR no="1" isLast="false">
                     <TH rowspan="1" colspan="1">Lead time component</TH>
                     <TH rowspan="1" colspan="1">Lead time</TH>
                     <TH rowspan="1" colspan="1">Lead time in hours</TH>
                  </TR>
                  <TR no="2" isLast="true">
                     <TD rowspan="1" colspan="1">Transportation time</TD>
                     <TD rowspan="1" colspan="1">2 days</TD>
                     <TD rowspan="1" colspan="1">18 hours</TD>
                  </TR>
               </TBODY>
            </TABLE>
         </ExampleSection>
         <Paragraph>The sum of the <GUIRef href="/baanerp/td/ipu/tdipu0110m000#tdipu010.ipti" role="manual">Internal Processing Time</GUIRef>, <GUIRef href="/baanerp/td/ipu/tdipu0110m000#tdipu010.sfti" role="manual">Safety Time</GUIRef>, and <GUIRef href="/baanerp/td/ipu/tdipu0110m000#tdipu010.suti" role="manual">Supply Time</GUIRef> is 20 hours. Which is, when converted to
		  days, 2.5 days which equates to a total lead time of 20 hours/eight hours on
		  average available for each available day. Because the calculated lead time is
		  always expressed in whole days, LN rounds the lead time to 3 days. The <GUIRef href="/baanerp/td/ipu/tdipu0110m000#transit.time" role="manual">Transportation Time (Days)</GUIRef> is 18 hours. Which is,
		  when converted to days, 2 days which equates to a total lead time of 18
		  hours/nine hours on average available for each available day. As a result, the <Link href="/baanerp/td/ipu/tdipu0110m000#tdipu010.cldt" role="formfield">Calculated Lead Time (Days)</Link> is five.</Paragraph>
      </GeneralSection>
      <Note>
         <SectionTitle>Note</SectionTitle>
         <Paragraph>Each time you open or
		  close the <GUIRef href="/baanerp/td/ipu/tdipu0110m000" role="session">Items - Purchase Business Partner (tdipu0110m000)</GUIRef>/ <GUIRef href="/baanerp/td/pur/tdpur3102m000" role="session">Purchase Contract Line Logistic Data (tdpur3102m000)</GUIRef> session, LN (re)calculates the
		  lead times.</Paragraph>
      </Note>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/tc/onlinemanual/000122" role="manual">To define the standard calendar</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/td/onlinemanual/000133" role="manual">To determine the planned receipt date</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/tc/onlinemanual/000128" role="manual">Overview of calendar functionality</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/fm/onlinemanual/000031" role="manual">Lead time calculations for originating orders</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/fm/onlinemanual/000021" role="manual">The use of standard routes</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/fm/onlinemanual/000022" role="manual">The use of route plans</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>