<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/cp/onlinemanual/000087" xml:lang="en">
   <Header>
      <Title>Workdays and calendar days in Enterprise Planning</Title>
      <Keyword type="header" order="d1e189280">
         <Level1>Workdays and calendar days</Level1>
         <Level2>Enterprise Planning</Level2>
      </Keyword>
   </Header>
   <GeneralSection>
      <Paragraph>Several types of
      horizons, time fences, and lead times are expressed in <Link href="/baanerp/cp/glossary/glossary#000064" role="glossary">workdays</Link>. During the planning process, these workdays need
      to be translated to calendar days.</Paragraph>
      <Paragraph>When <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> translates workdays to calendar days, it takes the capacity of the appropriate
      calendar into account.</Paragraph>
      <GeneralSection>
         <SectionTitle>Procedure for lead-time data</SectionTitle>
         <ProcedureList>
            <ListIntro>For lead-time data (such as the safety time), the procedure
          can be described as follows:</ListIntro>
            <ListItem>
               <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> converts workdays to working hours, based on the <Link href="/baanerp/ti/glossary/glossary#BasicCapaci_ti" role="glossary">basic capacity</Link> of the resource involved
          (defined in the <GUIRef href="/baanerp/cp/rpd/cprpd2100m000" role="session">Resource (cprpd2100m000)</GUIRef> session). If no resource is involved, the conversion is based on the basic
          capacity of the work center (defined in the <GUIRef href="/baanerp/ti/rou/tirou0101m000" role="session">Work Centers (tirou0101m000)</GUIRef> session).</ListItem>
            <ListItem> 
               <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> plans the working hours according to the resource calendar or
          a more general calendar.</ListItem>
         </ProcedureList>
      </GeneralSection>
      <GeneralSection>
         <SectionTitle>Procedure for horizons and time fences</SectionTitle>
         <ProcedureList>
            <ListIntro>For horizons and time fences, the procedure can be
          described as follows:</ListIntro>
            <ListItem> 
               <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> converts workdays to working hours, based on the basic day
          capacity that is defined in the <GUIRef href="/baanerp/cp/rpd/cprpd0100m000" role="session">EP Parameters (cprpd0100m000)</GUIRef> session.</ListItem>
            <ListItem>
               <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> plans the working hours according to the calendar of the
          item's enterprise unit. If no enterprise-unit calendar is available, the
          company calendar is used.</ListItem>
            <ListItem>The resulting time indications (expressed in hours, minutes,
          and seconds) are rounded to the end of a plan period. (This step is not carried
          out for <Link href="/baanerp/cp/glossary/glossary#000071" role="glossary">signal horizons</Link>.)</ListItem>
         </ProcedureList>
      </GeneralSection>
      <GeneralSection>
         <SectionTitle>Example: time-fence calculation</SectionTitle>
         <Paragraph/>
         <Paragraph>The capacity defined
          in the enterprise-unit calendar is displayed in the following table:</Paragraph>
         <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
            <TBODY noTR="9">
               <TR no="1" isLast="false">
                  <TH rowspan="1" colspan="1">Date</TH>
                  <TH rowspan="1" colspan="1">Working times</TH>
                  <TH rowspan="1" colspan="1">Capacity [hrs]</TH>
               </TR>
               <TR no="2" isLast="false">
                  <TD rowspan="1" colspan="1">June 10</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 6:00 P.M.</TD>
                  <TD rowspan="1" colspan="1">12</TD>
               </TR>
               <TR no="3" isLast="false">
                  <TD rowspan="1" colspan="1">June 11</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 6:00 P.M.</TD>
                  <TD rowspan="1" colspan="1">12</TD>
               </TR>
               <TR no="4" isLast="false">
                  <TD rowspan="1" colspan="1">June 12</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 6:00 P.M.</TD>
                  <TD rowspan="1" colspan="1">12</TD>
               </TR>
               <TR no="5" isLast="false">
                  <TD rowspan="1" colspan="1">June 13</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 12:00 noon</TD>
                  <TD rowspan="1" colspan="1">6</TD>
               </TR>
               <TR no="6" isLast="false">
                  <TD rowspan="1" colspan="1">June 14</TD>
                  <TD rowspan="1" colspan="1">-</TD>
                  <TD rowspan="1" colspan="1">0</TD>
               </TR>
               <TR no="7" isLast="false">
                  <TD rowspan="1" colspan="1">June 15</TD>
                  <TD rowspan="1" colspan="1">-</TD>
                  <TD rowspan="1" colspan="1">0</TD>
               </TR>
               <TR no="8" isLast="false">
                  <TD rowspan="1" colspan="1">June 16</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 6:00 P.M.</TD>
                  <TD rowspan="1" colspan="1">12</TD>
               </TR>
               <TR no="9" isLast="true">
                  <TD rowspan="1" colspan="1">June 17</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 6:00 P.M.</TD>
                  <TD rowspan="1" colspan="1">12</TD>
               </TR>
            </TBODY>
         </TABLE>
         <Paragraph>Basic day capacity:
          12 hours per day Current date: June 11, 4:00 P.M. Time fence: 3 workdays</Paragraph>
      </GeneralSection>
      <GeneralSection>
         <SectionTitle>Procedure</SectionTitle>
         <Paragraph>The time fence is
        converted to the number of hours, minutes, and seconds, based on the basic
        capacity (time fence = 3 x 12 = 36 hours).</Paragraph>
         <Paragraph>Then, the time fence
        is planned forward, starting at the current date and time. This is illustrated
        in the following table:</Paragraph>
         <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
            <TBODY noTR="8">
               <TR no="1" isLast="false">
                  <TH rowspan="1" colspan="1">Date</TH>
                  <TH rowspan="1" colspan="1">Working times</TH>
                  <TH rowspan="1" colspan="1">Capacity [hrs]</TH>
               </TR>
               <TR no="2" isLast="false">
                  <TD rowspan="1" colspan="1">June 11</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 6:00 P.M.</TD>
                  <TD rowspan="1" colspan="1">2</TD>
               </TR>
               <TR no="3" isLast="false">
                  <TD rowspan="1" colspan="1">June 11</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 6:00 P.M.</TD>
                  <TD rowspan="1" colspan="1">12</TD>
               </TR>
               <TR no="4" isLast="false">
                  <TD rowspan="1" colspan="1">June 11</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 12:00 noon</TD>
                  <TD rowspan="1" colspan="1">6</TD>
               </TR>
               <TR no="5" isLast="false">
                  <TD rowspan="1" colspan="1">June 11</TD>
                  <TD rowspan="1" colspan="1">-</TD>
                  <TD rowspan="1" colspan="1">0</TD>
               </TR>
               <TR no="6" isLast="false">
                  <TD rowspan="1" colspan="1">June 11</TD>
                  <TD rowspan="1" colspan="1">-</TD>
                  <TD rowspan="1" colspan="1">0</TD>
               </TR>
               <TR no="7" isLast="false">
                  <TD rowspan="1" colspan="1">June 11</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 6:00 P.M.</TD>
                  <TD rowspan="1" colspan="1">12</TD>
               </TR>
               <TR no="8" isLast="true">
                  <TD rowspan="1" colspan="1">June 11</TD>
                  <TD rowspan="1" colspan="1">6:00 A.M. - 6:00 P.M.</TD>
                  <TD rowspan="1" colspan="1">4</TD>
               </TR>
            </TBODY>
         </TABLE>
         <Paragraph>The resulting time
        fence is: June 17, at 10:00 AM. This time fence is rounded to the end of the
        plan period in which it falls.</Paragraph>
      </GeneralSection>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000034" role="manual">Calendars in Enterprise Planning</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000023" role="manual">Horizons and time fences</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/cp/onlinemanual/000407" role="manual">Time Zones in Enterprise Planning</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>