Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Scenario:

  • Allotment Period: 12th June 2024 to 20th June 2024

  • Release Rule: Number of days before arrival = 3

  • Rentability Condition: Departure is only allowed on weekends (Saturday or Sunday).

How the Release Works:

On each day, we will calculate the endDate based on the "Number of days before arrival" and check if departure on that date meets the rentability condition. If it doesn't, we look for the next possible departure date.

Step 1: Day-by-Day Release Calculation

Current Date

Start Date

Number of Days Before Arrival

Calculated End Date

Is Departure Allowed? (Rentability)

Final End Date

Release Period

12th June 2024

12th June 2024

3 days

15th June 2024 (Saturday)

Yes (Saturday is allowed)

15th June 2024

12th June to 15th June

13th June 2024

13th June 2024

3 days

16th June 2024 (Sunday)

Yes (Sunday is allowed)

16th June 2024

13th June to 16th June

14th June 2024

14th June 2024

3 days

17th June 2024 (Monday)

No (Monday is not allowed)

22nd June 2024

14th June to 22nd June

  • No labels