calculate_les_decoder
Net pay from a Leave and Earnings Statement: sums the entitlement lines (base pay, BAH, BAS, other) and deduction lines (federal tax, FICA, state tax, SGLI, TSP, other), and returns net pay plus deductions as a percent of entitlements. Negative line items count as zero, as on the page. Use when the user has Leave and Earnings Statement lines and wants the net pay explained. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive LES decoder calculator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bah | No | BAH entitlement in USD. | |
| bas | No | BAS entitlement in USD. | |
| tsp | No | TSP deduction in USD. | |
| fica | No | FICA deduction in USD. | |
| sgli | No | SGLI deduction in USD. | |
| base_pay | No | Base pay entitlement in USD. | |
| state_tax | No | State tax deduction in USD. | |
| federal_tax | No | Federal tax deduction in USD. | |
| other_deductions | No | Other deductions in USD. | |
| other_entitlements | No | Other entitlements in USD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |