Analytics preference

This site uses privacy-focused analytics to understand usage and improve the site. No cookies or session recording. Allow anonymous usage stats?

You can change this anytime by clearing browser storage. See the Privacy Policy.

How It Works

A smart algorithm that turns your limited PTO into maximum time off

The Core Idea

Holiday Optimizer uses dynamic programming to find smart ways to distribute your PTO days across the year. By cleverly combining your PTO with weekends, holidays, and company shutdowns, it creates longer breaks while using fewer vacation days.

Maximizes consecutive days
Respects all constraints
Instant results

Example: 9-Day Break

Using only 3 PTO days, you get 9 consecutive days off

Sat20
Sun21
Mon22
Tue23
Wed24
Thu25
Fri26
Sat27
Sun28
Your PTO
Weekend
Holiday
Company off
9
Total days off
3
PTO used
6
Free days

The Algorithm

01

Parse Your Inputs

The optimizer builds a calendar for your chosen timeframe, marking every weekend, public holiday, company shutdown, and pre-booked PTO day.

02

Calculate PTO Costs

Using prefix sums, the algorithm instantly computes how many PTO days are needed for any date range, accounting for all your free days.

03

Dynamic Programming Magic

The algorithm explores every possible break combination using memoization, respecting your strategy spacing and length rules.

04

Return Your Plan

The optimizer reconstructs the selected breaks with full transparency—showing exactly which PTO days to book and how they maximize your consecutive time off.

Strategy Presets

Each strategy has different rules for break spacing and length. The algorithm enforces these constraints while finding arrangements that maximize your consecutive time off.

Balanced

Spacing:21 days
Length:3-15 days

Mix of short and long breaks distributed throughout the year

Long Weekends

Spacing:7 days
Length:3-4 days

Frequent 3-4 day escapes near weekends

Mini Breaks

Spacing:14 days
Length:5-6 days

Week-long trips every couple weeks

Week Long

Spacing:21 days
Length:7-9 days

Longer vacations spaced out

Extended

Spacing:30 days
Length:10-15 days

Maximum length breaks, infrequent but epic

Why This Approach Works

  • Respects all constraints (pre-booked PTO, company shutdowns, custom weekends)
  • Uses dynamic programming to find the best arrangement for your preferences
  • Instant results—no waiting, no complicated spreadsheets
  • Fully transparent—shows exactly why each break was chosen
  • This plan is a helpful draft. Feel free to tweak it to match your preferences

Ready to optimize your year?

Put the algorithm to work on your schedule. Enter your PTO days, select your location, and get your personalized plan in seconds.

Launch Optimizer