Skip to main content

Leave Day Calculator

Summary

LeaveDayCalculator is a stateless function over dates, half-day input, an optional policy, and supplied calendar collections.

Audience

Backend developers, QA, architects, and product engineers.

Overview

The calculator has no I/O and depends only on supplied data. Application code loads an active per-type policy, holidays in range, and tenant weekly offs. Unsupported rules include type-level half-day enforcement, notice, duration, annual cap, balance sufficiency, regional calendars, and policy assignment. Extension requires explicit inputs or orchestration changes; no plugin abstraction exists.

Source References

  • microservices/src/leave-service/Domain/Leave/LeaveDayCalculator.cs
  • microservices/src/leave-service/Application/LeaveWorkflows.cs

See Also

Keywords

  • Leave Service
  • Leave Day Calculator
  • Technical architecture

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-15
  • Review cycle: Quarterly