State overlay
For each state, conformity ∈ { full, partial, decouple, no-tax, pending }.
State add-back of the federal exclusion:
- full → 0 (state honors federal 1:1)
- partial → 0.5 × federalExclusion (an approximation for partial-conformity states; per-state /states/[code] documents the exact rule)
- decouple → 1.0 × federalExclusion (state taxes 100% of gain)
- no-tax → 0 and topMarginalRate = 0
- pending → not computed: state add-back, state tax, combined tax and effective rate read Pending
stateTaxable = federalUnexcludedGain + stateAddBack
stateTax = stateTaxable × topMarginalRate