Range & Reason · Methodology
How manager scripts work
Manager scripts turn a pay change into talking points and a letter for three situations: the raise, the no-raise, and the promotion. The numbers are three small formulas, and the draft is built from a fixed template that never invents a number.
Try the tool: Manager scripts →
The three formulas
increase amount = new pay - old pay
increase percent = increase amount / old pay
new compa-ratio = new pay / midpoint
old compa-ratio = old pay / midpoint
- The increase percent is a decimal: 0.05 means 5%. It needs both pays, and the old pay above zero.
- Either compa-ratio needs its pay and a midpoint above zero. A compa-ratio typed in directly is used only when no midpoint is available, and the page says so: “As entered”.
- Inputs are parsed by stripping “$”, commas, whitespace, and “%”. Blank or non-numeric input reads as nothing entered, not as zero.
Two-way binding: one drives the other
Type a new pay and the percent follows; type a percent and the new pay follows. They cannot disagree, because each is recomputed from the other.
percent = ((new pay - old pay) / old pay) x 100, to 1 decimal
new pay = round(old pay x (1 + percent / 100)), to a whole dollar
The page shows its working under the result: the increase in dollars as new pay minus old pay, the increase percent as increase amount divided by old pay, and the new compa-ratio as new pay divided by midpoint.
Worked example: Analyst II
The tool’s sample form: a raise for Analyst II, old pay $70,000, new pay $73,500, range midpoint $75,000.
- Increase amount: 73,500 - 70,000 = $3,500.
- Increase percent: 3,500 / 70,000 = 0.05 = 5.0%.
- Old compa-ratio: 70,000 / 75,000 = 0.93. New compa-ratio: 73,500 / 75,000 = 0.98.
- Binding check, typing the percent back in: round(70,000 x (1 + 5.0 / 100)) = round(73,500) = $73,500. Same number, as designed.
The deterministic draft: blanks stay blank
The draft is built locally from your numbers only, and it works with no key, no network, and no AI at all. Anything unknown renders as a bracket placeholder, never invented: [role], [old pay], [new pay], [increase amount], [increase %], [compa-ratio], [effective date], [employee name], [Manager name], [next review date]. The no-raise draft also carries a [Reason in one plain sentence] line, and the promotion draft a [New responsibilities in one or two sentences] line. Every letter ends with: “Have counsel review before sending. This is a drafting aid, not legal advice, and it is not a contract.”
The talking points are written to the same rule. The raise script says what drove the increase in one sentence, the work, not a market claim you cannot back up with a number on the page. The no-raise script says to give the one real reason in plain language, and never a vague market claim. If asked where the new pay lands in the range, the script states the compa-ratio and says: do not quote a market rate, none is on this page.
Inputs and where they come from
- Scenario (raise, no-raise, or promotion), role label, old pay, new pay, increase percent, compa-ratio, midpoint, effective date, and one optional line of manager context: typed by you.
- There is no name field on purpose. The letter addresses “[employee name]” and is signed “[Manager name]”.
What the AI is grounded in
The deterministic template script is always shown alongside the AI draft, so the tool works with no key, no network, and no AI at all. When you ask the AI, it receives only the role label and the pay numbers you choose to send, shown first in a “What the AI sees” panel. 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.
Two server-side guardrails back the panel. The server re-checks the model output for dollar amounts and percentages that do not match the supplied numbers, and falls back to the deterministic local template when one appears. And any payload containing a name, email, or ssn key is rejected with a 400 error before any model call; a context line that looks like it contains an email address is rejected on the page before any call, with the instruction to take names and contact details out.
Limits
- The draft is a starting point for a conversation, not a finished letter. Have counsel review before sending.
- The tool knows the numbers you typed and nothing else. It cannot check whether the increase is affordable, fair against peers, or compliant with any law.
- The compa-ratio is only as good as the midpoint you typed. A typed compa-ratio with no midpoint is shown as entered, not verified.
Formulas verified against app/lib/manager-scripts.ts and app/tools/manager-scripts/page.tsx on main. The worked example is the tool’s own sample form, re-checked by hand.