The Calendar Utility provides a sample Calendar, SAMPLE_US, that contains the following Calendar rules for standard business adjustments, based on Saturday and Sunday defined as weekend days.
When a date falls on a weekend day or a holiday, adjust the date to the next workday.
For example, when an aged date falls on a Saturday or Sunday, the date is adjusted to the following Monday, but if Monday is a holiday, the date is adjusted to Tuesday (provided Tuesday is not a holiday and so on).
When a date falls on a weekend day or a holiday, adjust the date to the previous workday.
For example, when an aged date falls on a Saturday or Sunday, the date is adjusted to the previous Friday, but if Friday is a holiday, the date is adjusted to Thursday (provided Thursday is not a holiday and so on).
When a date falls on a weekend or holiday, adjust the date to the closest workday.
For example, when an aged date falls on a Saturday, the date is adjusted to the previous Friday. If the date falls on a Sunday, the date is adjusted to the following Monday. If the date falls on a holiday, the date is adjusted to the closest weekday.
When a date falls on a weekend day, adjust the date to the next weekday.
For example, when an aged date falls on a Saturday or Sunday, the date is adjusted to the following Monday.
When a date falls on a weekend day, adjust the date to the previous weekday.
For example, when an aged date falls on a Saturday or Sunday, the date is adjusted to the previous Friday.
When a date falls on a weekend day, adjust the date to the closest weekday.
For example, when an aged date falls on a Saturday, the date is adjusted to the previous Friday. If the date falls on Sunday, the date is adjusted to Monday.
When a date does not fall on a date defined as the start-of-quarter day, adjust the date to the next quarter.
For example, when a calculated date is March 5th, the date is adjusted to April 1st (the start of the next quarter). If April 1st is a weekend or holiday, the date is adjusted again to the next following weekday.
When a date does not fall on a date defined as the start-of-quarter day, adjust the date to the previous quarter.
For example, when a calculated date is March 5th, the date is adjusted to January 1st (the start of the previous quarter). If January 1st is a weekend or holiday, the date is adjusted again to the next following weekday.
When a date does not fall on a date defined as the start-of-quarter day, adjust the date to the closest quarter.
For example, when a calculated date is March 5th, the date is adjusted to April 1st. If the date is January 15th, the date is adjusted to January 1st. If the first day of the quarter is not a workday, the date is adjusted again to the closest weekday.
When a date does not fall on a date defined as a payday, adjust the date to the next payday.
For example, when a calculated date is March 5th and payday is defined as the 1st and the 15th day of each month, the date is adjusted to March 15th.
When a date does not fall on a date defined as a payday, adjust the date to the previous payday.
For example, when the date is March 5th and payday is defined as the 1st and the 15th day of each month, the date is adjusted to March 1st.