Repository navigation
Uprate Philadelphia taxable wages with employment income - #10779
Merged
Merged
Conversation
pa_philadelphia_wage_tax_taxable_wages declared no uprating, so default_uprating.py gave it the default dollar-input series, CBO adjusted gross income per capita. Wages (employment_income_before_lsr) follow IRS employment income per capita, so a dataset that derives taxable wages from wages saw the two drift apart in every extended year. The variable now names calibration.gov.irs.soi.employment_income, as the other pay inputs do. test_uprating_series.py pins the series, and a new test in test_per_capita_uprating.py checks that dataset extension keeps taxable wages equal to wages floored at zero in every year from 2025 to 2035. The SPM methodology page moves the input from the default list to the pay inputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both sides edited the uprating paragraph of the SPM methodology page. This keeps main's paragraph and reapplies the branch's two changes to it: wages subject to Philadelphia's wage tax join the pay inputs, and the default list's "local earnings and wage tax inputs" become "local earnings tax inputs". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10779 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 37 10 -27
=========================================
- Hits 37 10 -27
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…nsion For any four wages, taxable wages set to wages floored at zero keep that relation in every extended year through 2036. On main the test fails: Hypothesis shrinks to wages of 0, 0, 0 and 1. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
Author
|
US + core hub merge audit, us#10779 at
🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
pa_philadelphia_wage_tax_taxable_wagesnow uprates bycalibration.gov.irs.soi.employment_income, the series thatemployment_income_before_lsrand the other pay inputs follow. Taxable wages that a dataset derives from wages now grow with those wages in every later year.The variable declared no
uprating, soCountryTaxBenefitSystemgave it the default for dollar inputs, CBO's adjusted gross income projection per capita (add_default_upratinginpolicyengine_us/tools/default_uprating.py, thenadd_per_capita_upratinginpolicyengine_us/tools/per_capita_uprating.py). WhenMicrosimulationloads a single-year dataset,extend_single_year_datasetinpolicyengine_us/data/economic_assumptions.pymultiplies each column by the year-over-year ratio of its uprating series. So taxable wages grew with AGI per capita, and wages with IRS employment income per capita.From a 2024 base, CBO's AGI per capita stays ahead of IRS employment income per capita through 2036. On main, taxable wages set equal to wages in 2024 exceed them by 1.9% in 2025, 3.1% in 2026 and 0.1% to 2.5% in each year from 2027 to 2036. PolicyEngine/microcosm#1462, an open draft, sets a Philadelphia resident's taxable wages to
max(employment_income_before_lsr, 0). With that data, we would compute the wage tax on more than a resident's wages in every projected year.We also move these wages on the SPM methodology page from the inputs on the default to the pay inputs that follow the IRS employment income series. We leave the other local earnings tax inputs on the default: Kansas City and St. Louis taxable earnings, the St. Louis earnings tax credit, and Yonkers and Wilmington nonresident earnings. Neither the default dataset nor PolicyEngine/microcosm#1462 fills them.
Invariant
A wage-derived input grows with the wage series. Taxable wages and
employment_income_before_lsrnow resolve to the same uprating parameter, soextend_single_year_datasetmultiplies both by the same factor each year. When a dataset sets taxable wages to wages floored at zero, the two keep that relation in every extended year.Test plan
test_uprating_series.pylistspa_philadelphia_wage_tax_taxable_wageswith the pay inputs inEXPECTED, so it fails if the variable leaves the employment income series.test_per_capita_uprating.py::test_extension_grows_philadelphia_taxable_wages_with_wagesextends a four-person 2024 dataset to 2035 and checks that taxable wages equal wages floored at zero in every year, with one negative and one zero wage. It runs no microsimulation and loads no dataset.test_extension_keeps_philadelphia_taxable_wages_at_floored_wages, a Hypothesis property test, draws four wages between −$10 million and $10 million and checks the same relation through 2036. On main it fails, and Hypothesis shrinks to wages of 0, 0, 0 and 1.ruff format --check/ruff checkon the changed files (ruff 0.15.5, the locked version)changelog.d/7e92d4256apassed all 36 jobs on GitHub's merge with mainf2f0747472.test_uprating_series.pyand both new tests pass on this branch merged with main at3f6e604b14. On main the two series differ in every year from 2025 to 2036; on this branch the variable andemployment_income_before_lsrresolve to the same per-capita parameter.Microsimulation impact
This PR changes no result on the default dataset (
populace-us-2024-spm-20260909). That dataset has nopa_philadelphia_wage_tax_taxable_wagescolumn, so the input stays at 0 in every year. When a user enters taxable wages for one year and computes a later year, the model now grows them with wages. For example, a Philadelphia resident with $50,000 of wages and taxable wages in 2024 now has $53,779 of taxable wages in 2026, where main gives $55,452, and owes $2,011 of wage tax, where main gives $2,074.impact: none on the default dataset, which has no
pa_philadelphia_wage_tax_taxable_wagescolumn; household calculations that enter taxable wages for an earlier year now grow them with wagesaxiom: n/a: changes how an input grows across years, in datasets and in household calculations; no provision changes
Related: PolicyEngine/microcosm#1462
🤖 Generated with Claude Code