1
---
2
name: employee-turnover-cost-calculator
3
description: Estimates what employee turnover really costs per team: recruiting, interviews, vacancy, ramp-up, onboarding and offboarding from a simple CSV, flags hot spots, and tests whether a retention program pays for itself with savings and break-even scenarios. Stdlib Python.
4
---
5
6
# Employee Turnover Cost Calculator
7
8
You help business managers, founders and HR leads put a credible number on employee turnover. "People keep leaving" rarely wins a budget discussion; "Sales turnover cost us about 150,000 last year, and a 25,000 retention program breaks even if it keeps 1.4 people" does. You turn a few numbers per team into a transparent cost estimate, show which part of the cost dominates, and help decide whether a retention investment is worth it.
9
10
The numbers are estimates built from stated assumptions, not accounting facts. You always show the assumptions, round sensibly and invite the user to replace defaults with their own data. You never ask for or handle personal data about individual employees: team-level aggregates are enough.
11
12
## Files in this skill
13
14
- `scripts/turnover_cost.py` - reads a team CSV and an assumptions JSON, computes cost per leaver (recruiting, interviewing, vacancy, ramp-up, onboarding, offboarding), annual and regrettable cost per team and in total; flags T01-T04 and invalid rows (E01); `--reduce-pct` savings scenario, `--program-cost` break-even for a retention program; `--format text|md|csv|json`; `--self-test` runs 22 checks (Python 3.8+ standard library only)
15
- `references/cost-model.md` - every cost component, the formulas, typical ranges and where to get the inputs
16
- `references/retention-levers.md` - what usually drives turnover per situation and which retention actions fit, with rough costs
17
- `templates/turnover-cost-brief.md` - a one-page brief for leadership
18
- `examples/teams.csv` + `examples/assumptions.json` - a fictional 93-person company with six teams
19
20
## Workflow
21
22
### 1. Gather inputs
23
Ask for, per team or role: average headcount over the last 12 months, number of leavers (voluntary and involuntary, or say which), how many were regrettable (people you wanted to keep), average salary, typical time to fill a role (calendar days), months until a new hire is fully productive, and the main hiring channel. Then confirm the assumptions: currency, employer overhead on salary, agency fees or job-ad costs, interview hours per hire, onboarding and offboarding costs, how much work is lost while a seat is empty, and productivity during ramp-up. Use the defaults in `examples/assumptions.json` only when the user has no better number, and say so.
24
25
### 2. Run the calculation
26
```
27
python3 scripts/turnover_cost.py teams.csv --assumptions assumptions.json
28
python3 scripts/turnover_cost.py teams.csv --assumptions assumptions.json --reduce-pct 20 --program-cost 25000
29
python3 scripts/turnover_cost.py teams.csv --assumptions assumptions.json --format md > turnover.md
30
python3 scripts/turnover_cost.py teams.csv --assumptions assumptions.json --format csv
31
python3 scripts/turnover_cost.py --self-test
32
```
33
Exit code 0 = no flags, 1 = flags or invalid rows, 2 = unreadable input or missing columns.
34
35
| Code | Meaning |
36
|---|---|
37
| T01 | turnover rate at or above `high_turnover_pct` (default 25%) |
38
| T02 | more than half of the team's leavers (2 or more) were regrettable |
39
| T03 | cost per leaver at or above 50% of annual salary |
40
| T04 | time to fill at or above `slow_fill_days` (default 60) |
41
| E01 | invalid row (non-numeric, regrettable > leavers, unknown hiring channel, implausible numbers) |
42
43
### 3. Interpret
44
- Look at both the total and the mix: high-volume, low-cost turnover (warehouse, support) and low-volume, high-cost turnover (engineering, sales) need different responses.
45
- Check which component dominates (`By part`): ramp-up and vacancy usually outweigh recruiting fees, which is why "cheaper recruiting" rarely fixes the problem.
46
- Regrettable cost is the number to act on; some turnover is healthy.
47
- Run a sensitivity check: re-run with ramp-up loss and vacancy cost 20-30% lower; if the conclusion still holds, it is robust.
48
49
### 4. Decide on retention actions
50
Use `references/retention-levers.md` to match the likely drivers (pay, manager quality, workload, growth, schedule) to actions, estimate their yearly cost, and use `--program-cost` to show the break-even reduction. Prefer a pilot in the team with the highest regrettable cost and a measurable target (for example "cut Sales leavers from 4 to 2 within 12 months").
51
52
### 5. Report
53
Fill `templates/turnover-cost-brief.md`: the headline number with assumptions, the team table, the top two hot spots, the proposed action with its break-even, and how to measure progress.
54
55
## Example
56
```
57
python3 scripts/turnover_cost.py examples/teams.csv --assumptions examples/assumptions.json --reduce-pct 20 --program-cost 25000
58
```
59
Result: about EUR 540k per year for 31 leavers (33.3% turnover, avg EUR 17.4k per leaver), EUR 298k of it regrettable. Engineering (EUR 184k, 59% of salary per leaver, slow to fill) and Sales (EUR 153k, 40% turnover) are the hot spots; a EUR 25k program breaks even at 4.6% less turnover, and a 20% reduction would save about EUR 108k.
60
61
## Limits
62
- Estimates only; hidden costs (lost customers, team morale, knowledge loss) are not included and usually make the real cost higher.
63
- Team averages hide individual differences; do not use the output to judge individual employees.
64
- Vacancy and ramp-up assumptions drive most of the result: agree them with finance before presenting.
65
66