<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tf/onlinemanual/000488" xml:lang="en">
   <Header>
      <Title>Due date calculation methods</Title>
      <Keyword type="header" order="d1e1661795">
         <Level1>Due date calculation</Level1>
      </Keyword>
   </Header>
   <GeneralSection>
      <Paragraph>Several methods exist to
		determine the <Link href="/baanerp/tc/glossary/glossary#DueDate_tc" role="glossary">due date</Link> of an invoice or
		payment schedule line.</Paragraph>
      <List>
         <ListIntro>In the <GUIRef href="/baanerp/tc/mcs/tcmcs0113s000" role="session">Payment Terms (tcmcs0113s000)</GUIRef> session, you can select one of the following due date
		  calculation methods</ListIntro>
         <ListItem>
            <GUIRef href="/baanerp/tc/domains/cdde#direct" role="option">Immediately</GUIRef>
         </ListItem>
         <ListItem>
            <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="option">End of Month</GUIRef>
         </ListItem>
         <ListItem> 
            <List>
               <ListIntro>Only if the period type for the payments is <GUIRef href="/baanerp/tf/domains/acp.ptyp#days" role="option">Days</GUIRef>:</ListIntro>
               <ListItem>
                  <GUIRef href="/baanerp/tc/domains/cdde#end.fortnight" role="option">End of Fifteen Days</GUIRef>
               </ListItem>
               <ListItem>
                  <GUIRef href="/baanerp/tc/domains/cdde#end.ten.days" role="option">End of Ten Days</GUIRef>
               </ListItem>
               <ListItem>
                  <GUIRef href="/baanerp/tc/domains/cdde#end.week" role="option">End of Week</GUIRef>
               </ListItem>
            </List>
         </ListItem>
      </List>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Immediately</SectionTitle>
      <Paragraph>The <GUIRef href="/baanerp/tc/domains/cdde#direct" role="option">Immediately</GUIRef> due-date calculation method simply adds the payment period to the document
		date.</Paragraph>
      <List>
         <ListTitle>Example</ListTitle>
         <ListIntro>Purchase invoice PUR 20000123 has the following details:</ListIntro>
         <ListItem>The document date is
		  2007-02-23.</ListItem>
         <ListItem>The payment period is 10
		  days.</ListItem>
         <ListItem>The period type for the
		  payments is <GUIRef href="/baanerp/tf/domains/acp.ptyp#days" role="option">Days</GUIRef>.</ListItem>
         <ListItem>The due-date calculation
		  method is <GUIRef href="/baanerp/tc/domains/cdde#direct" role="option">Immediately</GUIRef>.</ListItem>
         <ListItem>No fixed payment days are specified.</ListItem>
      </List>
      <Paragraph>The due date is
		calculated as follows: document date + payment period</Paragraph>
      <Paragraph>The resulting due date
		is: 2007-03-05.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>End of Month</SectionTitle>
      <List>
         <ListIntro>For the <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="option">End of Month</GUIRef> method, you can select two additional factors for the due date
		  calculation:</ListIntro>
         <ListItem> 
            <List>
               <ListItemHead>The due-date calculation priority</ListItemHead>
               <ListItem>If the due-date
				calculation priority is <GUIRef href="/baanerp/tc/domains/mcs.prio#end.month" role="option">End of Month</GUIRef>, the end of the month in which the invoice was created is taken.
				The payment period is added to that.</ListItem>
               <ListItem>If the due-date
				calculation priority is <GUIRef href="/baanerp/tc/domains/mcs.prio#pay.period" role="option">Payment Period</GUIRef>, the payment period is first added to the document date. Then,
				the end of the month in which the resulting date lies is taken as due date.</ListItem>
            </List>
         </ListItem>
         <ListItemHead>The due-date time fence</ListItemHead>
         <ListItem>
            <Paragraph>The fence defines a fixed day of the month before which the
			 invoice must have been created. If the invoice's document date is higher than
			 the due-date fence, a whole month is added to the calculation.</Paragraph>
         </ListItem>
      </List>
      <List>
         <ListTitle>Example</ListTitle>
         <ListIntro>Purchase invoice PUR 20000456 has the following details:</ListIntro>
         <ListItem>The document date is
		  2007-02-23.</ListItem>
         <ListItem>The payment period is
		  10.</ListItem>
         <ListItem>The period type for the
		  payments is <GUIRef href="/baanerp/tf/domains/acp.ptyp#days" role="option">Days</GUIRef>.</ListItem>
         <ListItem>The due-date calculation
		  method is <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="option">End of Month</GUIRef>.</ListItem>
         <ListItem>The due-date fence is 20
		  (day 20 of a month).</ListItem>
         <ListItem>The due-date calculation
		  priority is <GUIRef href="/baanerp/tc/domains/mcs.prio#end.month" role="option">End of Month</GUIRef>.</ListItem>
         <ListItem>The fixed payment dates
		  are the 5th, the15th, and the 25th of each month.</ListItem>
      </List>
      <List>
         <ListIntro>The resulting due date is 2007-04-15. This is calculated as
		  follows:</ListIntro>
         <ListItem>The due-date
		  calculation priority <GUIRef href="/baanerp/tc/domains/mcs.prio#end.month" role="option">End of Month</GUIRef> determines that the last date of the month in which the invoice
		  was created must be taken. In this case 2007-02-28.</ListItem>
         <ListItem>The due-date fence is
		  the 20th of the month, which means the invoice's due date is only calculated
		  starting from February if the document date falls before the 20th of February.
		  As this is not the case, the end of the following month will serve as the basis
		  of the calculation instead (2007-03-31).</ListItem>
         <ListItem>The due date is
		  calculated by adding the payment period to the end date of this month; this
		  results in: 2007-04-10.</ListItem>
         <ListItem>This date must be
		  increased until the next fixed payment date. This means the due date is:
		  2007-04-15.</ListItem>
      </List>
      <List>
         <ListTitle>Example</ListTitle>
         <ListIntro>In this example, the time fence and the due-date calculation
		  priority have the following effect:</ListIntro>
         <ListItemHead>The time fence</ListItemHead>
         <ListItem>If the document date is 2007-02-13, the time fence (2007-02-20)
		  is not exceeded and the due date is: 2007-03-15.</ListItem>
         <ListItemHead>The due-date calculation priority</ListItemHead>
         <ListItem> 
            <List>
               <ListIntro>If the due-date calculation priority is <GUIRef href="/baanerp/tc/domains/mcs.prio#pay.period" role="option">Payment Period</GUIRef>, the resulting due date is 2007-03-31. This is calculated as
				follows:</ListIntro>
               <ListItem>The priority
				determines that first the payment period must be added to the document date.
				Then the end of the month in which the resulting date falls is taken.</ListItem>
               <ListItem>If the result is
				later than the time fence (at the time of the transfer), the due date must fall
				in the following month.</ListItem>
               <ListItem>The due date is
				calculated as follows: Document date + payment period = 2007-03-05. This date
				is earlier than the 20th of the month, which means the date can be moved to the
				end of the month. Therefore, the resulting due date is 2007-03-31.</ListItem>
            </List>
         </ListItem>
      </List>
      <Paragraph>If the period type is <GUIRef href="/baanerp/tf/domains/acp.ptyp#months" role="option">Months</GUIRef>,
		the due-date calculation method must be <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="option">End of Month</GUIRef>. and the due-date calculation priority is <GUIRef href="/baanerp/tc/domains/mcs.prio#not.app" role="option">Not Applicable</GUIRef>.</Paragraph>
      <List>
         <ListTitle>Example</ListTitle>
         <ListIntro>Purchase invoice PUR 2000789 has the following details:</ListIntro>
         <ListItem>The invoice date is
		  2007-03-25.</ListItem>
         <ListItem>The payment period is 3.</ListItem>
         <ListItem>The period type is <GUIRef href="/baanerp/tf/domains/acp.ptyp#months" role="option">Months</GUIRef>.</ListItem>
         <ListItem>The due-date calculation
		  method <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="option">End of Month</GUIRef>
         </ListItem>
         <ListItem>The due-date fence is 20
		  (20th of the month).</ListItem>
      </List>
      <List>
         <ListIntro>The resulting due date, 2007-07-31, is calculated as follows:</ListIntro>
         <ListItem>The calculation method
		  is <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="option">End of Month</GUIRef>, which means that the due date must fall after the end of the
		  month (as the priority does not apply).</ListItem>
         <ListItem>The time fence is 20:
		  the conditions are only valid for the month of the document date, if this date
		  is earlier than the 20th of the month (2007-03-20). As this is not the case,
		  the end of the following month is taken (2007-04-30).</ListItem>
         <ListItem>The due date is
		  determined by adding the payment period to the last date of this month,
		  resulting in: 2007-07-31.</ListItem>
      </List>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>End of Fifteen Days</SectionTitle>
      <Paragraph>Fortnights start on the first, the 15th, and the 29th day of the
		month.</Paragraph>
      <List>
         <ListTitle>Example</ListTitle>
         <ListIntro>Purchase invoice PUR 20000123 has the following details:</ListIntro>
         <ListItem>The document date is
		  2007-02-23.</ListItem>
         <ListItem>The payment period is 10
		  days.</ListItem>
         <ListItem>The period type for the
		  payments is <GUIRef href="/baanerp/tf/domains/acp.ptyp#days" role="option">Days</GUIRef>.</ListItem>
         <ListItem>The due-date calculation
		  method is <GUIRef href="/baanerp/tc/domains/cdde#end.fortnight" role="option">End of Fifteen Days</GUIRef>.</ListItem>
         <ListItem>No fixed payment days are specified.</ListItem>
      </List>
      <Paragraph>The due date is
		calculated by adding the payment period to the first day of the next fortnight
		after the document date.</Paragraph>
      <Paragraph>The first day of the next
		fortnight after 2007-02-23 is 2007-03-01.</Paragraph>
      <Paragraph>The resulting due date
		is 2007-03-01 + 10 days = 2007-03-11.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>End of Ten Days</SectionTitle>
      <Paragraph>For the <GUIRef href="/baanerp/tc/domains/cdde#end.ten.days" role="option">End of Ten Days</GUIRef> due-date calculation method, due date is calculated by adding the
		payment period to the first day of the next multiple of ten days after the
		document date. Multiple of ten day periods start on the first, the 11th, the
		21st, and the 31st of each month.</Paragraph>
      <List>
         <ListTitle>Example</ListTitle>
         <ListIntro>Purchase invoice PUR 20000123 has the following details:</ListIntro>
         <ListItem>The document date is
		  2007-02-13.</ListItem>
         <ListItem>The payment period is 10
		  days.</ListItem>
         <ListItem>The period type for the
		  payments is <GUIRef href="/baanerp/tf/domains/acp.ptyp#days" role="option">Days</GUIRef>.</ListItem>
         <ListItem>The due-date calculation
		  method is <GUIRef href="/baanerp/tc/domains/cdde#end.ten.days" role="option">End of Ten Days</GUIRef>.</ListItem>
         <ListItem>No fixed payment days are specified.</ListItem>
      </List>
      <Paragraph>The due date is
		calculated by adding the payment period to the first day of the next fortnight
		after the document date.</Paragraph>
      <Paragraph>The first day of the next
		multiple of ten days after 2007-02-13 is 2007-02-21.</Paragraph>
      <Paragraph>The resulting due date
		is 2007-02-21 + 10 days = 2007-03-02.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>End of Week</SectionTitle>
      <Paragraph>For the <GUIRef href="/baanerp/tc/domains/cdde#end.week" role="option">End of Week</GUIRef> due-date calculation method, the due date is calculated by adding
		the payment period to the first day of the next week after the document date. LN retrieves the first
		day of the week from the <GUIRef href="/baanerp/tt/aad/ttaad1100m000" role="session">Companies (ttaad1100m000)</GUIRef> session of <GUIRef href="/baanerp/tt" role="package">Enterprise Server</GUIRef>.</Paragraph>
      <List>
         <ListTitle>Example</ListTitle>
         <ListIntro>Purchase invoice PUR 20000123 has the following details:</ListIntro>
         <ListItem>The document date is
		  2007-02-13.</ListItem>
         <ListItem>The payment period is 10
		  days.</ListItem>
         <ListItem>The period type for the
		  payments is <GUIRef href="/baanerp/tf/domains/acp.ptyp#days" role="option">Days</GUIRef>.</ListItem>
         <ListItem>The due-date calculation
		  method is <GUIRef href="/baanerp/tc/domains/cdde#end.week" role="option">End of Week</GUIRef>.</ListItem>
         <ListItem>The first day of the week in the <GUIRef href="/baanerp/tt/aad/ttaad1100m000" role="session">Companies (ttaad1100m000)</GUIRef> session is <GUIRef href="/baanerp/tt/domains/aad.danm#sunday" role="option">Sunday</GUIRef>.</ListItem>
         <ListItem>No fixed payment days are specified.</ListItem>
      </List>
      <Paragraph>The due date is
		calculated by adding the payment period to the first day of the next week after
		the document date.</Paragraph>
      <Paragraph>The first day of the next
		week after 2007-02-13 is 2007-02-17.</Paragraph>
      <Paragraph>The resulting due date
		is 2007-02-17 + 10 days = 2007-03-27.</Paragraph>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/tf/onlinemanual/000105" role="manual">Due date calculation</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/tf/onlinemanual/000474" role="manual">Payment schedules – overview</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/tf/onlinemanual/000474" role="manual">Payment schedules – overview</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>