Attendance Calculator
Summary
AttendanceCalculator is a stateless domain service that turns entered or punched hours plus effective context into a canonical daily result.
Audience
Backend developers, architects, QA engineers, and payroll-integration developers.
Calculation pipeline
| Input responsibility | Output responsibility |
|---|---|
| Effective mode, standard hours, overtime threshold, shift timing/grace, worked-hours rules, entered or derived time | Status, work hours, overtime, shortfall, late minutes, and paid units |
Manual normalization, punch derivation, approval recomputation, and reopen recomputation reuse calculator behavior. Extension occurs through effective policy resolution and ordered worked-hours rules, not a plug-in interface.
Confirmed limitations include no Leave/holiday input, no break model, no approved business rounding policy, no multi-punch interval aggregation, policy rules limited to worked-hours status resolution, and period-summary context that may not reflect every mid-period assignment change. Numeric tenant thresholds and formulas are intentionally omitted.
Source References
microservices/src/attendance-service/Domain/Attendance/AttendanceCalculator.csmicroservices/src/attendance-service/Domain/Attendance/EffectiveAttendancePolicy.csmicroservices/src/attendance-service/Application/Services/AttendancePolicyResolver.csmicroservices/src/attendance-service/Domain/Attendance/EmployeeAttendancePolicy.cs
Related Articles
See Also
Keywords
- Attendance Service
- Attendance Calculator
Revision Information
- Status: Draft
- Last reviewed: 2026-07-15
- Review cycle: Quarterly