🌴 Stretch My Time Off

In {getFlagEmoji(Object.keys(countriesList).find(code => countriesList[code] === selectedCountry))} {selectedCountry}, there are {holidays.length} public holidays in {year}.
Let's stretch your time off from {daysOff} days to {consecutiveDaysOff.reduce((total, group) => total + group.totalDays, 0)} days (how?)

I live in {getFlagEmoji(Object.keys(countriesList).find(code => countriesList[code] === selectedCountry))} { inputElement.value = ''; adjustInputWidth(); }} aria-label="Select country" /> and have {daysOff} days off in {year}

{#if year !== defaultYear || selectedCountry !== defaultCountry || daysOff !== defaultDaysOff} Reset to default {/if} {#each Object.entries(countriesList) as [code, name]} {/each}
Weekend
Day Off
Public Holiday
{#each months as month}
{/each}
{showHowItWorks ? 'Hide Details' : 'How does this work?'}
{#if showHowItWorks}

How does this work?

This tool detects your country from your IP, uses a default number of government-mandated days off from Wikipedia, and a database of holidays for your country.

The algorithm prioritizes filling the shortest gaps first. It optimizes for spreading your holidays throughout the year to create the most number of consecutive vacation periods.

Built with SvelteKit. Hosted on Vercel with Cloudflare. Developed using Cursor, an AI-powered code editor, and GPT-4o.

{/if}