Skip to content
Version 2.4.0Try demo
Time & Leave

Forecasted Leave ​

How Horilla decides whether a request fits the balance, and what a forecasted leave is.

Leave is judged against the balance the employee will have on the day the leave ends. That lets someone book time off after a reset, for example asking in December for leave that runs into January.

For a request ending on a given date, Horilla stops at the first of these that fits:

  1. The balance held now. If today's balance (available plus carried-forward days) covers the request, the days come off it, however far ahead the dates are.
  2. The balance after a reset. If today's balance is too small, Horilla looks at each reset before the end date, in order, including any carryforward expiry on the way. The first reset that leaves enough is the cycle the leave is charged to.
  3. No fit. The request is refused with Does not have sufficient leave balance for the requested dates.

A request that only fits after a reset is a forecasted leave. Some details:

  • Other waiting requests of the same leave type that end in the same cycle are held against the balance, so two requests cannot claim the same days.
  • A leave that starts before a reset and ends after it is charged in full to the later cycle.
  • A leave type with no limit always fits.
  • The check uses the days actually charged, which is the requested days less any holidays or week-offs the leave type excludes.

The forecast window (opened from the info icon) shows a policy line such as Resets Yearly On 1 January · 24 Days Each Reset · Carry Forward Up To 5 Days (Expires), a timeline with a row for Balance Now and one for each reset and carryforward expiry, the other bookings under Already Booked, and the totals. The verdict reads one of:

  • Counted Against The Current Balance.
  • Approving Brings The Balance Forward To The Cycle Starting On a date, for a forecasted leave.
  • Short By a number, with Not Enough Balance Even After The Forecast, So This Request Cannot Be Saved.

When an approver approves a forecasted leave, every reset and expiry between now and that cycle is applied in advance, one by one, as the scheduler would have done. The days then come off the balance of that cycle, and the next reset moves to the one after it, so the scheduler does not run those resets again. The request remembers its cycle. The employee's ledger shows these as Provided rows.

Example

Emily has 1 day of Executive Leave left. The leave type resets every year to 24 days and lets 5 days carry forward. In December she asks for 10 days ending on 8 January. Today's balance cannot cover 10 days, but after the reset it holds 25 (24 new days plus her 1 carried day), so the request is a forecasted leave. When it is approved, the reset is applied in advance, 10 days come off, and the balance reads 15.

If a forecasted leave is later rejected or cancelled, the balance goes back to how it was before the approval, resets included, as long as nothing else has touched it. Otherwise the days are simply added back.

See also ​

You're readingLeave · Horilla 2.4.0