runbookify
← All plans
Payroll & Timekeeping / Payroll Prep & Runs

Final Pay Calculator: Get the Last Check Right and On Time

Assemble a terminating employee's final check — final hours, accrued-PTO payout, owed reimbursements, last deductions — flag the state's final-pay deadline, and route it for a manager's approval so nobody leaves underpaid or late.

IntermediateA weekendBuilds onNext.jsSupabaseResend
What you'll build

A web tool where you pick a terminating employee, term date, and reason, the tool pulls final hours, PTO balance, and reimbursements, computes the final check, shows the state's final-pay deadline with a risk flag, your manager reviews and approves, and the tool exports a final-pay CSV in your provider's format plus a one-page summary for the file.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.

Before you start

  • A Supabase account (free)
  • A Vercel account (free)
  • A Resend account (free)
  • An employee/roster export (CSV) with pay rates and PTO balances
  • Your state's final-pay rules and your PTO-payout policy
  • Claude Code or any AI coding agent

The problem this kills

When someone is terminated, payroll has a small, high-stakes window to get the last check exactly right. You have to gather final hours, decide whether accrued PTO gets paid out (which depends on your state and your policy), add any owed expense reimbursements, apply the last deductions, and — the part that trips everyone — get it all out the door by your state's final-pay deadline. Some states require the check on the last working day for involuntary terminations. Miss it and you're not just embarrassed; you're exposed to waiting-time penalties that can dwarf the check itself.

Today this lives in someone's head and a frantic spreadsheet. The rules differ for a voluntary quit versus a firing. The PTO-payout question changes by state. The deadline clock starts ticking the moment HR says "they're out." It's exactly the kind of error-prone, deadline-driven task you should hand to a tool — and you don't need to be a developer to build one.

What you'll build

A simple internal web tool. You select the terminating employee, the termination date, and the reason (voluntary or involuntary). The tool pulls that employee's final hours, PTO balance, and any outstanding reimbursements, then computes the final check: regular and overtime pay, accrued-PTO payout where your state and policy require it, reimbursements added, final deductions applied. It looks up the state's final-pay deadline for that termination type and shows it prominently with a risk flag — green if you have time, red if the check is due today. Your payroll manager opens the assembled final-pay package, reviews every line, and clicks Approve. Only then does the tool produce a final-pay CSV in your payroll provider's import format and a one-page summary to drop in the employee file.

What's inside the Implementation Plan

The downloadable plan is a step-by-step file you paste into an AI coding agent. It opens by interviewing you about your business — which payroll system you use, exactly how your employee and timecard data is named, your PTO-accrual and payout policy, the states you operate in and their final-pay rules, how voluntary versus involuntary changes your deadline, and your messy edge cases — and then it tailors the data model, the calculations, and every later step to your answers. This is not a generic template; the agent reflects a short spec back to you and waits for your thumbs-up before it builds anything. From there it walks the agent through the employee/term selection, the hours-and-PTO pull, the final-pay math, the state-deadline lookup and risk display, the manager review-and-approve screen, and the CSV export plus one-page summary — each step with a ready-to-copy prompt. There's also a fallback so you can build the whole thing today even with no API to your payroll system.

The governance it includes (this is the point)

This is real payroll tooling with legal stakes, so it ships with the controls a payroll team needs: login so only your team can use it, row-level security so you only ever see your own organization's employees, a complete audit trail of who computed, reviewed, and approved which final check and when, a hard human-approval gate so no final-pay CSV is exported until your manager signs off, and duplicate guards keyed on employee plus termination so the same person can't be issued two final checks. The state deadline and its risk are shown front and center, so "late" is something you decide to risk, never something that sneaks up on you.

Who it's for

HR and payroll staff who handle terminations and have to get the final check right and on time, with real legal consequences if they don't. If you can describe how your shop pays out PTO and which states you operate in, you can build this.

You've got this — start with the plan, paste the first prompt, answer the interview, and you'll see a correct, deadline-aware final-pay package take shape the same afternoon.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.