calculate_pay_raise
What a raise is actually worth after tax. Runs the real brackets before and after, so bracket crossings are handled — not a flat marginal rate applied to the raise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | US state abbreviation (e.g. CA, NY, TX) | |
| raisePct | No | Raise as a percentage, e.g. 5 (negative for a cut) | |
| raiseAmount | No | Raise as a dollar amount — takes priority over raisePct | |
| filingStatus | No | Tax filing status | single |
| currentSalary | Yes | Current annual salary | |
| preTaxDeductions | No | Pre-tax deductions (401k, HSA), held constant |