The Code Codex
Theme

Vacation Planner

Find the dates that give you the most rest by bridging Brazilian holidays and weekends, following CLT rules.

The link keeps what is on screen.
Parameters
Period
Year
How to take it
Schedule and holidays
Your schedule
They are optional days off: only count them if your company grants them or your city makes them holidays.
City holidays and agreed days offYour city's holidays, company bridge days… They count in the calculation.

Best dates

Calendar

VacationHolidayBridged day offSchedule day off
April 2026
SMTWTFS123456789101112131415161718192021222324252627282930
May 2026
SMTWTFS12345678910111213141516171819202122232425262728293031
How is it calculated?
Tests every start date of the year and measures continuous rest: vacation days plus schedule days off and holidays right before and after. CLT rule (art. 134, §3): vacation cannot start in the 2 days before a holiday or the paid weekly rest (Sunday). Splitting (art. 134, §1): up to 3 periods, one with 14+ days and the others with 5+. National holidays are computed for any year (movable ones from Easter); state holidays come from a table citing each date's law; you add city holidays.
See the code ↗

Processed in your browser; nothing is sent.

⌨️ Use from the terminal (JSON)

This tool also runs outside the site: the cli.js script uses the same logic as this page and returns the result as JSON. Parameters are the same as this page's URL — copy the command below with the values on screen.

Deno
deno run -q "https://thecodecodex.com/cli.js?tool=vacation-planner"
Node.js / Bun
curl -s https://thecodecodex.com/cli.js | node --input-type=module - vacation-planner ano=…
ParameterDescriptionDefault
anoanoano atual
diasdias de férias (modo=single)10
modosingle | splitsingle
divisaoíndice da divisão: 0=30, 1=15+15, 2=20+10, 3=14+8+8, 4=14+11+5, 5=20+5+5, 6=14+6+101
escala5x2 | 6x15x2
facultativos1 = folga no Carnaval/Corpus Christi0
ufestado (feriados estaduais)—
folgasferiados locais: AAAA-MM-DD,...—

Requires Deno, Node.js or Bun. With Deno the script runs with no permissions: it cannot read files or access the network. Central Bank indicators are from the day the site was published.

More in Finance