Case study 1 of 4

HR Toolkit

Free employment-rule calculators, kept as data and tested

Notice, severance and leave rules for every Canadian province and territory, each tied to its official source, checked by 69 automated tests and free to use.

Open HR Toolkit ↗

Built
December 2026, from an older Ontario calculator of mine
Status
Live, and I'm still adding tools
Tools
  • Claude Code
  • JavaScript
  • Astro
  • Cloudflare Pages
  • 14jurisdictions for notice and severance
  • 69automated tests, run before every build
  • 3tools live, all free with no sign-up
  1. RulesEach jurisdiction is one data entry, with its official source and the date I checked it.
  2. Tests69 tests, including the governments’ own worked examples, run before every build.
  3. PagesOne page per province and territory, built from the same data.
  4. ReviewEach page links its source and shows when the rules were last reviewed.
How a rule becomes a page.

Why I built it

Notice and severance questions come up all the time in People Ops. The answer depends on the province, the exact length of service and a few details that are easy to miss. The rules are public, but they’re spread across 14 different laws. I wanted one place where a manager or a People Ops person can get the minimum in a few seconds and see where the number comes from.

It started as a small Ontario notice calculator. In December 2026 I rebuilt it to cover every province and territory plus the Canada Labour Code. Then I added a maternity and parental leave planner and a California final pay calculator.

How it’s built

The rules live in data files, separate from the pages. Each jurisdiction has an entry with its notice table, its severance rule if it has one, and the official page I checked it against, with the date. The pages read from that data. When a rule changes, I edit one entry and every page that uses it updates.

Each province and territory gets its own page, like /severance/ontario/, and the page links the source it was checked against. During the December review I couldn’t reach the official pages for four of them. Those pages say so and tell the reader to confirm with the employment standards office.

69 automated tests run before every build, and the build stops if one fails. Where a government page has a worked example, that example is a test:

  • Ontario’s severance example: 7 years, 9 months and 2 weeks at $1,000 a week comes to $7,750.
  • Quebec’s (CNESST) example for counting length of service.
  • California’s vacation payout example: 72 hours at $13 comes to $936.

Most of the other tests are about where the rules tip over. Saskatchewan’s wording is “more than 13 weeks” and Alberta’s is “90 days or less”, so the tests check the exact day each one changes. Others cover the caps, Ontario’s mass-termination rule and the federal minimums.

The first version had a different address. When I moved everything to hrtoolkit.pages.dev, I mapped every old page to its new path with a permanent (301) redirect, so old links and search results still land on the right page. Then I clicked through the old links, including the one on the original project page, to check each one. I planned it the way I’d plan an HRIS cutover.

Guardrails

  • Each result names the law or government guide it’s based on, and the site shows when the rules were last reviewed.
  • The page says it’s a minimum and not legal advice.
  • Nothing you type leaves your browser. There are no accounts, cookies or tracking.
  • Where I couldn’t confirm a rule, the tool doesn’t guess. The leave planner shows only the EI dates for the Northwest Territories and Nunavut, because their sites were down when I checked.

Result

  • Three tools are live: notice and severance for 14 jurisdictions, the maternity and parental leave planner, and California final pay.
  • All 69 tests pass. 10 of the 14 notice rule sets, plus California, are checked against official pages. The other 4 are flagged on their pages.
  • Every page at the old address redirects to its new home.
  • Upkeep has a schedule: EI maximums change every year, so the next year’s figures go in each September.

Next, I’ll confirm the four rule sets I couldn’t check and add more calculators.