Introduction
This document describes in detail how to edit the calendar, understand legend and manage offsets in the timetables.
Located
The territory calendar view is located in the Applicant, C-OSS or IM timetable next to Territories.

Legend
Each territory has its own colour and if the territory contains more than one subpath it is marked with the same colour as the territory where it was created.

The calendar legend can be found at the bottom of the calendar view. The same calendar legend is used in all calendar views e.g.: territory calendar and path variant calendar

Description:
- Covered in current variant: days covered in the current variant.
- Covered in another variant: days covered in another variant

- Covered in current sub-path: days covered in the current sub-path
- Covered in another sub-path: days covered in the another sub-path

- Covered in base sub-path: days covered in base sub-path. The base sub-path is shown in the Add Sub-path wizard calendar view when copying a sub-path.

- Covered in previous territory: days covered in the previous territory. The legend is not highlighted with border colour if the selected territory is the first territory. In this case, there is no previous territory to compare the days with.

- Warning: calendar inconsistency warning message

- Not covered in previous territory: days not covered on the previous territory

- Not covered from validity period: days not covered from the validity period
- Not available: days not available

Preview bar
The preview bar is located on the sub-path information. All you need to do to hover your mouse over the bar to have the calendar preview visible.

Edit
In the edit mode, you can edit the calendar, the validity and/or traffic period. Use the online calendar to manage running days.
Options:
- Year: select/deselect year with one click, e.g.: 2022
- Month: select/deselect month with one click, e.g.: January
- Weekly circulation: days of the week from Monday to Sunday presented with numbers 1-7. Select/deselect weekly circulations with one click e.g.: if days 1-3 are selected the train runs each week only from Monday to Wednesday within a certain period.
- Days: select/deselect individual days e.g.: on the 11th and on the 16th the train will not run (see screenshot below)
- Validity period: define the validity period by using the calendar icon.

User traffic period
PCS gives the freedom to users to define traffic periods which can be saved as a calendar template.

The traffic period template validity period is not connected to the territory calendar view, you can still modify the validity period if needed. e.g.: The screenshot above shows that the traffic period template is valid until February, but can still be modified in edit mode if needed.
Select/deselect range
PCS allows you to select/deselect a range of days from the calendar. When you press the Shift key then the blue border will appear around the calendar indicating that you can perform a range selection.
All you need to do:
- Select the start day for your range
- Press and hold the Shift key while moving the mouse cursor to the end day. The range selection will be highlighted in a lighter colour until you click the end date
- Select the end date, and PCS will mark the selected days with the same colour as your selected sub-path colour. If you deselect, the selected days will have the same colour as the available days displayed.

Unhold the Shift key to exist range. It happens for some reason you exist in the range edit mode without saving your selected range and re-entering the edit mode later, your previous selected range still be shown. You have to save changes then the selection/deselection range work.
User variant
There is an advanced way to edit the calendar. It is possible to edit on the user variant level.

Editing and changing the calendar in the user variant level applies to the whole variant.

Warnings
PCS check the consistency from top to the bottom and if the calendar isn't consistent PCS shows the following warning messages:
- Not all the days are covered
- Extra running days

Offsets
PCS contains the following offsets:
- Manual (in days): it can be entered manually when editing the timetable.
- Automatic (in days): the system automatically detects the midnight crossing and propagates the offset based on the entered arrival and departure times.
- TImezone (in hours): A time offset defined in hours to an arrival or departure time to reflect the actual time zone offset that should be considered when calculating automatic and/or manual actual arrival and departure offset for running days in a path section.
In PCS the default timezone offset is UTC +1.
Icons
The icon description is located on the Path Variants view:

- Manual:

- Automatic:

- Timezone offset:

Edit
In the edit subpath wizard, you can click the
icon to add a time zone or manual offset.

Once the manual offset or the time zone offset is entered the changes are more prominent
, the icon changes to indicate that the values entered are different from the default time zone offset or that the days are offset (not on the same day) from the previous path section/territory.
Manual & Automatic
If manual offset is applied together with the automatic offset then the automatic offset sums up the total number of offsets and manual offset serves as an additional indication that manual offset is applied.
