<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tf/onlinemanual/000105" xml:lang="en">
	<Header>
		<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Due date calculation</Title>
		<Keyword><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. You can specify the payment period and the method to determine the due date in the <GUIRef href="/baanerp/tc/mcs/tcmcs0113s000" role="session">Terms of Payment (tcmcs0113s000)</GUIRef> session. The payment period is the number of days or months that is added to the invoice's document date to get the due date.</Paragraph>
		<Paragraph>The invoice's document date (date of creation) is the base for the due date calculation. One due-date calculation method simply is to add the payment period to the document date.</Paragraph>
		<Paragraph>Example 1</Paragraph>
		<List><ListIntro>We have a purchase invoice PUR 20000123 with the following data:</ListIntro>
			<ListItem>The document date is 23-02-2002.</ListItem>
			<ListItem>The payment period is 10 days.</ListItem>
			<ListItem>The due-date calculation method is <GUIRef href="/baanerp/tc/domains/cdde#direct" role="enum">Immediately</GUIRef>.</ListItem>
			<ListItem>The due-date calculation priority is <GUIRef href="/baanerp/tc/domains/mcs.prio#not.app" role="enum">Not Applicable</GUIRef>.</ListItem>
		</List>
		<Paragraph>The due date is calculated: document date + payment period</Paragraph>
		<Paragraph>The resulting due date is: 05-03-2002.</Paragraph>
		<List><ListIntro>If the due-date calculation method, which is defined in the <Link href="/baanerp/tc/mcs/tcmcs0113s000#tcmcs013.cdde" role="formfield">Due Date Calculation</Link> field in the <GUIRef href="/baanerp/tc/mcs/tcmcs0113s000" role="session">Terms of Payment (tcmcs0113s000)</GUIRef> session, is <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="enum">End of Month</GUIRef>, the calculation becomes more complex:</ListIntro>
			<ListItem>If the due-date calculation priority is <GUIRef href="/baanerp/tc/domains/mcs.prio#end.month" role="enum">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="enum">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>
		<Paragraph>If the due-date calculation method is <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="enum">End of Month</GUIRef>, you can define a due-date time fence. This affects the due-date calculation as well. 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>
		<Paragraph>Example 2</Paragraph>
		<List><ListIntro>We have a purchase invoice PUR 20000456 with the following data:</ListIntro>
			<ListItem>The document date is 23-02-2002.</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="enum">Days</GUIRef>.</ListItem>
			<ListItem>The due-date calculation method is <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="enum">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="enum">End of Month</GUIRef>.</ListItem>
			<ListItem>The fixed payment dates are the 5th, the 15th, and the 25th of each month.</ListItem>
		</List>
		<Paragraph>The resulting due date is 15-04-2002. This is calculated as follows:</Paragraph>
		<List><ListItem>The priority determines that the last date of the month in which the invoice was created must be taken. In this case 28-02-2002.</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 (31-03-2002).</ListItem>
			<ListItem>The due date is calculated by adding the payment period to the end date of this month; this results in: 10-04-2002.</ListItem>
			<ListItem>This date must be increased until the next fixed payment date. This means the due date is: 15-04-2002.</ListItem>
		</List>
		<Paragraph>Example 3</Paragraph>
		<Paragraph>The data for this example is the same as for the previous example, except for the document date. The invoice's document date is now: 13-02-2002. The time fence (20-02-2002) is not exceeded.</Paragraph>
		<Paragraph>The due date is: 15-03-2002</Paragraph>
		<Paragraph>Example 4</Paragraph>
		<List><ListIntro>This example concerns the same invoice. Additional data for this example:</ListIntro>
			<ListItem>The due-date calculation method is <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="enum">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#pay.period" role="enum">Payment Period</GUIRef>.</ListItem>
			<ListItem>The period type for payments is <GUIRef href="/baanerp/tf/domains/acp.ptyp#days" role="enum">Days</GUIRef>.</ListItem>
		</List>
		<Paragraph>The resulting due date is 31-03-2002. This is calculated as follows:</Paragraph>
		<List><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 = 05-03-2002 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 31-03-2002.</ListItem>
		</List>
		<List><ListIntro>Example 5 We have a purchase invoice PUR 2000789 with the following data:</ListIntro>
			<ListItem>The invoice date is 25-03-2002.</ListItem>
			<ListItem>The payment period is 3.</ListItem>
			<ListItem>The period type is <GUIRef href="/baanerp/tf/domains/acp.ptyp#months" role="enum">Months</GUIRef>.</ListItem>
			<ListItem>Consequently, SSA ERP uses the due-date calculation method <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="enum">End of Month</GUIRef>.</ListItem>
			<ListItem>The due-date calculation priority is <GUIRef href="/baanerp/tc/domains/mcs.prio#not.app" role="enum">Not Applicable</GUIRef>.</ListItem>
			<ListItem>The due-date fence is 20 (20th of the month).</ListItem>
		</List>
		<Paragraph>The resulting due date, 31-07-2002, is calculated as follows:</Paragraph>
		<List><ListItem>The calculation method is <GUIRef href="/baanerp/tc/domains/cdde#end.month" role="enum">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 (20-03-2002). As this is not the case, the end of the following month is taken (30-04-2002).</ListItem>
			<ListItem>The due date is determined by adding the payment period to the last date of this month, resulting in: 31-07-2002.</ListItem>
		</List>
	</GeneralSection>
	<RelatedTopics><SectionTitle>Related topics</SectionTitle>
		<RelTopic><Link href="/baanerp/tf/onlinemanual/000104" role="manual">To process purchase invoices</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
