Fix unsubsidized Marketplace net premiums#8163
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8163 +/- ##
============================================
+ Coverage 85.36% 100.00% +14.63%
============================================
Files 3 3
Lines 41 60 +19
Branches 2 0 -2
============================================
+ Hits 35 60 +25
+ Misses 6 0 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
pays_aca_premiumrather than PTC eligibility for gross SLCSP age-curve and NY/VT family-tier premiums.selected_marketplace_plan_premium_proxyon ACA premium payment/takeup instead ofaca_ptc > 0, so high-income unsubsidized Marketplace households keep a gross selected-plan premium and net premium.marketplace_net_premiuminhousehold_health_costswhen health benefits are included in net income.Notes
This intentionally does not add Marketplace premiums to SPM MOOP yet; that path needs imputed-premium residual work to avoid broad baseline double counting. This is the household-net-income side of #8095 plus the unsubsidized gross-premium fix.
Tests
uv run ruff format --check policyengine_us/variables/gov/aca/slspc/slcsp_age_curve_amount_person.py policyengine_us/variables/gov/aca/slspc/slcsp_family_tier_category.py policyengine_us/variables/gov/aca/ptc/selected_marketplace_plan_premium_proxy.pyuv run ruff check policyengine_us/variables/gov/aca/slspc/slcsp_age_curve_amount_person.py policyengine_us/variables/gov/aca/slspc/slcsp_family_tier_category.py policyengine_us/variables/gov/aca/ptc/selected_marketplace_plan_premium_proxy.pyuv run python policyengine_us/tests/test_batched.py policyengine_us/tests/policy/baseline/gov/aca --batches 1uv run python policyengine_us/tests/test_batched.py policyengine_us/tests/policy/baseline/household/income/household/household_health_costs.yaml --batches 1uv run python policyengine_us/tests/test_batched.py policyengine_us/tests/policy/baseline/household/household_health_benefits.yaml --batches 1uv run python policyengine_us/tests/test_batched.py policyengine_us/tests/policy/baseline/household/household_net_income_including_health_benefits.yaml --batches 1I also tried
uv run python policyengine_us/tests/test_batched.py policyengine_us/tests/policy/baseline/household --batches 1; it stayed CPU-bound for about 9 minutes without test output, so I stopped it and used the narrower household tests above.