Range & Reason · Methodology
How total rewards statements work
A statement adds up one employee’s pay and benefits into a single total, compares it with last year, and tells the story of what changed in plain English. The story is computed first in the browser; the AI draft is an optional layer on top, written only from the same numbers.
The eight components
A statement has up to eight components. Zero-value components are dropped, so a statement with no bonus shows no bonus line.
- Base salary: the employee’s annual base pay, as entered.
- Annual bonus: the target bonus at full goal achievement, as entered.
- Health, dental, and vision insurance (employer-paid): the employer’s share of annual premiums, from the company profile.
- 401(k) employer match: salary x (match cap percent / 100) x (match rate percent / 100), shown at the full match, assuming the employee contributes enough to earn it.
- Paid time off: (salary / 260) x PTO days, valued at the daily rate on 260 workdays a year.
- Perks: the sum of the annual values of the perks in the company profile.
statement total = sum of the component values
Year over year: what changed
Current components are matched to prior-year components by key. A component with no prior-year value is treated as zero last year.
delta = current - prior
percent change = (current - prior) / prior x 100, to 1 decimal
total delta = total - prior total
pay subtotal = salary + bonus
benefits subtotal = total - pay subtotal
- Percent change is null when there is no prior value, or the prior value is zero.
- A total delta under $1 in absolute value means the total is unchanged from last year.
- Otherwise the story names whether total rewards grew or decreased by the amount, plus the biggest mover in the same direction with its signed amount.
Worked example: Jordan Sample
The sample statement, with every step shown. Jordan Sample, Sample Role: salary $72,000, bonus $5,000. Sample Company, Inc.: health $9,600, dental $600, vision $240 a year; 401(k) match 100% of contributions up to 6% of pay; 20 PTO days; perks of $1,200 gym stipend, $480 life insurance, and $300 commuter benefit. Prior year (2025): salary $70,000, bonus $5,000, health $9,000, dental $600, vision $240, match $2,100, PTO $5,385, perks $1,980.
- PTO value: (72,000 / 260) x 20 = 276.92 x 20 = $5,538.
- 401(k) match: 72,000 x (6 / 100) x (100 / 100) = $4,320, at the full match.
- Perks: 1,200 + 480 + 300 = $1,980.
- Total: 72,000 + 5,000 + 9,600 + 600 + 240 + 4,320 + 5,538 + 1,980 = $99,278.
- Prior year total: 70,000 + 5,000 + 9,000 + 600 + 240 + 2,100 + 5,385 + 1,980 = $94,305.
- Change: 99,278 - 94,305 = +$4,973; 4,973 / 94,305 x 100 = +5.3%.
- Biggest mover: the 401(k) match, 4,320 - 2,100 = +$2,220. Salary +$2,000 (+2.9%), health +$600 (+6.7%), PTO +$153 (+2.8%).
- Split: pay 72,000 + 5,000 = $77,000; benefits 99,278 - 77,000 = $22,278.
Inputs and where they come from
- Employee salary, bonus, and hire date: from the saved census, or the sample employee when no census is saved.
- Company profile (health, dental, and vision annual values, match rate and cap, PTO days, perks): typed by you on the company page and saved in this browser.
- Prior year: a full per-component breakdown for the sample employee; a census employee carries only a prior year total, not the breakdown, so a census story cannot say which part moved most.
- Optional notes for the AI draft: trimmed to 1,000 characters, sent only if non-empty.
What the AI is grounded in, and how it is checked
The deterministic story comes first and works with no key, no network, and no AI: the total and the pay versus benefits split, the change since last year, and where the change came from, or a plain statement that the data cannot say. The AI draft adds plain language on top, only from the numbers in the payload: the component list (label, value, prior, delta, percent), the total and the prior year total, the pay versus benefits split, and the optional notes. No names, no grade ranges, no overlap figure. The AI never invents a pay number, never claims market data, never gives legal advice, and never makes a definitive pay call. Every answer ends with a guidance line saying it is guidance, not advice, not legal advice, and not a pay decision, and that a human who knows the situation makes the call.
The server checks the AI draft twice. First it refuses a payload whose total is not the component sum, whose delta is not value minus prior, or whose two subtotals do not sum to the total, each within $1. Second, after the model answers, it extracts every dollar and percent figure from the draft and checks it against the input numbers: a dollar figure must match an allowed whole-dollar value exactly, and a percent figure must match an allowed percent within half a point. A draft quoting a figure not in the data is replaced by the computed story, and the response says so, naming the foreign figures.
The page shows a verification panel beside every draft, citing the exact inputs the draft was written from: the total, the prior year total, and every component. That panel is the backstop the number check cannot provide: the check catches figures absent from the data, not a figure that exists in the data but is attached to the wrong line. The server also rejects any payload containing a name, email, or ssn key with a 400 error before any model call. The first draft is free. Pro removes that one-free cap. Fair use is 10 requests a minute and 200 a day. Statements have no per-tool price.
Limits
- The 401(k) match is shown at the full match. An employee who contributes less earns less match, and the statement does not know that.
- PTO is valued at the daily rate. That is an estimate of value, not cash, and not what PTO is worth if it is unused or unpaid.
- A statement is an estimated value of employer-provided pay and benefits. It is not a pay stub, and not a guarantee of future pay or benefits.
- A census statement can say the total moved, but not which part moved most, because the census carries only last year’s total.
- The number check catches a figure that is not in the data. It does not catch a figure from the data attached to the wrong line, so read the verification panel before printing a draft.
Formulas verified against app/lib/sample.ts and app/lib/statement-narrative.ts on main. The worked example is the sample statement, re-checked by hand.