Stretch My Time Off

In {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}

{#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?

The app uses your country to fetch public holiday data. The algorithm analyzes these holidays and weekends to identify gaps that can be optimized. It ranks these gaps based on their potential to be filled with personal leave days.

By strategically selecting the most efficient gaps, it calculates the longest possible sequences of consecutive days off. This approach maximizes your vacation time by aligning personal leave with public holidays, ensuring you make the most of your available days.

Built with SvelteKit, this tool uses JavaScript and CSS for responsiveness. Hosted on Vercel with Cloudflare for CDN and security, it was developed using AI tools like GPT-4o.

{/if}