# Crewdesk Leave Entitlement Calculator > Annual leave for a year: pro rata for start or end dates, part-time, carry-over with expiry. Works out how many days of annual leave someone has in a year: the full-time allowance scaled to their working days per week (also when the pattern changes during the year), pro rata for a start or end date in that year (full months like the German BUrlG, or calendar days), rounded the way you choose, plus carried-over days that lapse on a deadline unless they are used first. Add the leave taken and requested to see what is left. Shows the German statutory minimum for comparison. Part of usefulweb.site (https://usefulweb.site/). Part of [Crewdesk](https://crewdesk.usefulweb.site/) (ownerApp: crewdesk). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://crewdeskleaveentitlement.usefulweb.site/ (interactive tool at https://crewdeskleaveentitlement.usefulweb.site/tool) - JSON API: POST https://crewdeskleaveentitlement.usefulweb.site/api/v1/calculate with a JSON object of inputs (schema: https://crewdeskleaveentitlement.usefulweb.site/api/v1/tool) - OpenAPI: https://crewdeskleaveentitlement.usefulweb.site/openapi.json - MCP (Streamable HTTP): https://crewdeskleaveentitlement.usefulweb.site/mcp - tool `crewdesk_leave_entitlement` ## Inputs - year (number): Year - allowanceDays (number): Yearly allowance (full-time days) - referenceDaysPerWeek (number): The allowance is for … working days a week - startDate (text): Start of employment (optional) - endDate (text): End of employment (optional) - workingDays (textarea): Working days (or lines “YYYY-MM-DD: Mon-Thu” for changes) - One pattern such as Mon-Fri, or a pattern per period: first line the pattern at the start, then “2026-07-01: Mon-Thu”. - proRata (select): Part of a year counts - rounding (select): Rounding - accrual (select): Earned - carriedIn (number): Days carried over from last year - carryOverExpires (text): Carried days lapse after (MM-DD, empty = never) - carryOverMaxDays (number): At most … days move on to next year - leaveTaken (textarea): Leave taken (one range per line) - 2026-03-02..2026-03-06 or a single date. Counted in working days with the holidays below. - leavePlanned (textarea): Leave requested, not yet approved (one range per line) - asOf (text): As of (YYYY-MM-DD, empty = end of the year) - country (text): Country for public holidays (optional) - subdivision (text): State or region (optional) - ISO 3166-2 code such as DE-BY (Bavaria), DE-BE (Berlin), AT-9 (Vienna), CH-ZH or US-CA. Without it only nationwide holidays count. - extraHolidays (textarea): Extra holidays (YYYY-MM-DD, name per line) ## Method - Part-time: the allowance is scaled by working days per week ÷ the days the allowance is meant for (30 days at 5 days → 18 days at 3 days). When the pattern changes during the year, each period counts with its own days, weighted by its calendar days. - Pro rata (only when the employment starts or ends inside the year): full months of employment counted from the start day ÷ 12 (15 April–31 December = 8 full months), or employed calendar days ÷ days of the year, or not at all. - Rounding “§ 5 BUrlG”: a fraction of at least half a day becomes a full day, a smaller fraction stays as it is. Other modes round to half days or not at all. - Carry-over: days carried in are used first by leave taken up to the deadline; what is left lapses after it. Unused days at the end of the year move on up to the maximum. - Leave is counted in working days of the person’s pattern without public holidays of the chosen region (as in the working days calculator). The German statutory minimum is 4 weeks: 4 × working days per week, scaled the same way — shown for comparison only. ## Limits - Not payroll and not legal advice: contracts, collective agreements and local law decide the real entitlement.