Leave / PTO calculator (accrual, taken leave, and balance)
Tracking paid time off sounds simple until you actually try to calculate it.
Accrual rules differ between companies.
Work schedules vary across teams.
And public holidays affect how leave should be counted.
That is why we built a leave / PTO calculator:
leave / PTO calculator
With it, you can:
- calculate accrued leave over a selected period
- track leave taken within that period
- compute the final PTO balance
- apply each country’s public holiday calendar (and optional region) when counting working days
- narrow calculations to a specific region or subdivision
- convert between hours and working days
- customize working schedules
This makes it useful for:
- HR and payroll teams
- employee leave tracking
- PTO policy validation
- workforce planning
- international team management
Instead of maintaining spreadsheets, you get a consistent and reliable result.
Why PTO calculations get complicated
At a glance, PTO looks straightforward:
add accrued leave, subtract what was taken.
In practice, it quickly becomes more complex.
Common issues:
- mixing calendar days with working days
- ignoring public holidays
- inconsistent accrual methods
- handling carryover and caps
- different schedules across teams
For example:
- 5 days of leave is not always 40 hours
- a holiday inside a leave window should not count as PTO
- accrual may depend on actual working days, not fixed months
This is why PTO calculations need proper working-day logic.
How PTO accrual works
PTO accrual is the process of earning leave over time.
The calculation follows a simple structure:
- define the reporting period
- apply the accrual rule for that period
- add starting balance (carryover)
- subtract leave taken
- apply an optional balance cap
In practice:
ending balance = starting balance + accrued leave - taken leave
If a cap is defined, the final balance can be limited according to policy.
Accrual methods supported
Different companies use different accrual systems.
The calculator supports:
- hours per month
- hours per year
- hours per working day
This allows you to model both simple and more advanced PTO policies without changing the underlying logic.
Why working days matter for PTO
Using calendar days for leave tracking leads to inaccurate results.
Working-day-based calculations are more reliable because:
- they reflect actual scheduled work time
- they exclude weekends automatically
- they adjust for public holidays
- they align with payroll and HR practices
This is especially important for international teams where working schedules and holidays differ.
Taken leave and leave windows
The calculator can estimate leave taken based on selected date ranges.
It counts only working time within those ranges.
This helps with real-world scenarios such as:
- vacation spanning multiple days
- leave overlapping weekends or public holidays
- partial absences within a period
- leave across regions with different holidays
You can also provide a manual override if leave is already tracked elsewhere.
Public holidays and regional differences
Public holidays are applied automatically based on the selected country.
If a subdivision is selected:
- regional holidays are also excluded
- working-day calculations adjust accordingly
This ensures that PTO balances reflect local conditions.
For example, two employees in different regions may have different leave usage for the same date range.
Custom work schedules
Not all teams work Monday to Friday.
The calculator supports flexible schedules such as:
- Monday to Saturday
- Sunday to Thursday
- every day
This makes it suitable for:
- shift-based teams
- retail and logistics
- global organizations
Working days are always calculated based on the selected schedule.
PTO in hours and days
PTO is often tracked in hours, but many teams think in days.
The calculator uses workday duration to convert between both.
For example:
- 8 hours per day means 16 hours equals 2 days
This helps bridge the gap between payroll systems and user expectations.
Carryover and balance caps
Many PTO policies include limits on how much leave can be carried forward.
The calculator allows you to define:
- starting balance (carryover)
- maximum allowed balance
This helps simulate real HR policies where unused leave is limited.
Calculator vs API
The leave / PTO calculator is designed for quick, manual use.
If you need automation or integration into your product, you can use the API.
Leave / PTO API (for developers)
Use:
GET /api/leave-pto
Docs:
Public holiday data comes from:
GET /api/holidays
This ensures your backend logic matches the calculator results exactly.
Start calculating PTO
- Try the leave / PTO calculator
Use it to validate PTO policies, track leave balances, and support payroll decisions.
Accurate PTO tracking is essential for fair policies, compliance, and team transparency.
