Consecutive Days Limit

Consecutive Days Limit configuration
Consecutive Days Limit configuration

The Consecutive Days Limit plugin restricts how many days can be requested in a single time-off request. This helps ensure adequate staffing and prevents excessively long absences.

When to use

Use this plugin when:

  • Company policy limits the maximum duration of a single vacation
  • You need to ensure employees don’t take extended leaves without special approval
  • Different time-off types have different maximum durations

Parameters

ParameterDescriptionDefault
Max consecutive daysMaximum calendar days allowed in one request.Required
Count weekendsWhether weekend days count toward the limit. When turned off, only working days are counted.On

How it works

The plugin counts the number of days in each request:

  1. Calculates the span from start date to end date
  2. Counts either all calendar days or only weekdays based on configuration
  3. Blocks requests that exceed the maximum

Calendar days vs. working days

With Count weekends turned on:

  • A Monday-to-Friday request (5 working days) counts as 5 days
  • A Monday-to-Sunday request counts as 7 days

With Count weekends turned off:

  • A Monday-to-Sunday request counts as 5 working days
  • Weekend days are excluded from the count

Examples

Maximum two-week vacation

Limit individual vacation requests to 14 calendar days:

  1. Add the Consecutive Days Limit plugin to your policy
  2. Set Max consecutive days to 14
  3. Leave Count weekends turned on

Maximum 10 working days

Limit requests to 10 working days (two work weeks), ignoring weekends:

  1. Add the Consecutive Days Limit plugin
  2. Set Max consecutive days to 10
  3. Turn off Count weekends

This allows employees to take a full two-week period (including weekends) since only the 10 working days are counted.

Short-term leave: 5 days max

For time-off types meant for short absences:

  1. Add the Consecutive Days Limit plugin
  2. Set Max consecutive days to 5
  3. Leave Count weekends turned on

Splitting long requests

If an employee needs more consecutive days than allowed, they can:

  1. Submit multiple separate requests
  2. Request manager approval for an exception (if your workflow supports it)

The plugin only validates individual requests—it doesn’t prevent back-to-back requests that together exceed the limit.

Error messages

When a request exceeds the consecutive days limit, employees see a message indicating:

  • How many days were requested
  • The maximum allowed