<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/cp/onlinemanual/000024" xml:lang="en">
	<Header>
		<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Time fence calculation</Title>
		<Keyword><Level1>Time fence calculation</Level1>
			<Level2>Enterprise Planning</Level2>
		</Keyword>
		<Keyword><Level1>Time fences</Level1>
			<Level2>Enterprise Planning</Level2>
		</Keyword>
	</Header>
	<GeneralSection><Paragraph>You can define the <Link href="/baanerp/cp/glossary/glossary#000063" role="glossary">time fence</Link> as a number of <Link href="/baanerp/cp/glossary/glossary#000064" role="glossary">workdays</Link> or working hours in the <GUIRef href="/baanerp/cp/rpd/cprpd1100m000" role="session">Items - Planning (cprpd1100m000)</GUIRef> session. When you generate a master plan or an order plan, SSA ERP calculates the exact date and time up to which the supply plan and planned orders are frozen.</Paragraph>
		<GeneralSection><SectionTitle>Calendar</SectionTitle>
			<Paragraph>To calculate the time fence, <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> uses the calendar that you specified for the <Link href="/baanerp/tc/glossary/glossary#000011" role="glossary">enterprise unit</Link> of the default warehouse to which the plan item belongs.</Paragraph>
			<Paragraph>If you did not specify an enterprise unit for the default warehouse of the plan item, Enterprise Planning uses the company calendar to calculate the time fence.</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>Hours or days</SectionTitle>
			<Paragraph>If you defined the time fence in hours, SSA ERP sets the time fence by taking into account the workable hours, starting from the current time, and by adding up the number of hours you defined for the time.</Paragraph>
			<ExampleSection><SectionTitle>Example</SectionTitle>
				<Paragraph>Suppose you set the time fence to 7 hours, and the working hours for every day of the week are from 8:00 am to 17:00 pm. If SSA ERP generates the order planning on Wednesday, 13:00 pm, it sets the time fence to Thursday, 11:00 am.</Paragraph>
			</ExampleSection>
			<Paragraph>If you defined the time fence in days, SSA ERP also takes into account the workable periods of the week, considering the time left on the current day as one entire day, even if it were only one second.</Paragraph>
			<ExampleSection><SectionTitle>Example</SectionTitle>
				<Paragraph>Suppose you set the time fence to 3 days, and the working hours are from 8:00 am to 18:00 pm on Monday to Friday. If SSA ERP generates the order planning on Thursday, 17:30 pm, it sets the time fence to Monday, 18:00 pm.</Paragraph>
			</ExampleSection>
		</GeneralSection>
		<GeneralSection><SectionTitle>Plan periods</SectionTitle>
			<Paragraph><GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> moves the time fence towards the end of the <Link href="/baanerp/cp/glossary/glossary#000109" role="glossary">plan period</Link> in which it falls, because <GUIRef href="/baanerp/cp" role="package">Enterprise Planning</GUIRef> must know whether a plan period falls in or out of the time fence.</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>Purchase schedule items</SectionTitle>
			<Paragraph>To plan purchase orders for <Link href="/baanerp/td/glossary/glossary#000000000000011" role="glossary">purchase-schedule</Link> items, SSA ERP does not use a time fence, but a so-called frozen zone, which you can define in the contract linked to a purchase schedule.</Paragraph>
		</GeneralSection>
	</GeneralSection>
	<RelatedTopics><SectionTitle>Related topics</SectionTitle>
		<RelTopic><Link href="/baanerp/cp/onlinemanual/000023" role="manual">Horizons and time fences</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/cp/onlinemanual/000087" role="manual">Workdays and calendar days in Enterprise Planning</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/cp/onlinemanual/000302" role="manual">Plan periods in Enterprise Planning</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/cp/onlinemanual/000411" role="manual">Time fences in order planning and in master planning</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
