Rolling Period Limit

Rolling Period Limit configuration
Rolling Period Limit configuration

The Rolling Period Limit plugin restricts usage within a moving time window. Unlike yearly limits that reset on a fixed date, this limit looks back a specified number of months from each request.

When to use

Use this plugin when:

  • You want to prevent clustering of time off (e.g., max 5 days in any 3-month period)
  • Limits should be evaluated continuously rather than resetting annually
  • You need flexible usage caps that don’t align with calendar boundaries

Parameters

ParameterDescriptionDefault
Max usageMaximum days that can be used within the rolling period.Required
Period monthsSize of the rolling window in months (1–24).Required
Include account IDsAdditional accounts whose usage counts toward this limit (for combined caps).

How it works

The plugin examines a sliding window of time:

  1. For each request, looks back the specified number of months from the request start date
  2. Sums all usage (including pending requests) within that window
  3. Blocks the request if adding it would exceed the maximum

Rolling window example

With Period months = 3 and Max usage = 5 days:

If today is June 15, the system checks usage from March 15 to June 15. Tomorrow (June 16), it would check from March 16 to June 16. The window continuously moves forward.

Examples

Maximum 5 days per quarter

Limit usage to 5 days within any 3-month period:

  1. Add the Rolling Period Limit plugin
  2. Set Max usage to 5
  3. Set Period months to 3

Spread out extended leave

Prevent employees from taking more than 10 days within any 6-month period:

  1. Add the Rolling Period Limit plugin
  2. Set Max usage to 10
  3. Set Period months to 6

Monthly cap

Limit to 2 days per month:

  1. Add the Rolling Period Limit plugin
  2. Set Max usage to 2
  3. Set Period months to 1

Comparison with Yearly Usage Limit

FeatureRolling Period LimitYearly Usage Limit
Reset timingNever (continuous sliding)Fixed date each year
Look-back periodConfigurable (1–24 months)Always 12 months
Use casePrevent clusteringAnnual caps

The rolling limit is stricter for preventing bunched usage, while the yearly limit is better for annual allowance caps.

Error messages

When a request would exceed the rolling limit, employees see a message indicating:

  • The maximum allowed in the rolling period
  • How much they’ve used in the current window
  • How much remains available