From de010ef9f021a7c735c3a5e01faed2520fd96b8c Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 01:40:21 -0500 Subject: [PATCH 01/14] =?UTF-8?q?Add=20premium=20tax=20credit=20rules=20fo?= =?UTF-8?q?r=202014=E2=80=932017?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date the annual applicable percentages and estimate historical benchmark premiums from the existing 2018 rating-area data. Add historical CMS age curves and poverty guidelines, and retain the filing condition. Floor supplied negative MAGI for the historical years and preserve the calculations used from 2018 onward. Cover the tables, premiums, eligibility ceiling, filing behavior and compatibility with YAML and property tests. Co-Authored-By: Claude Opus 5.5 --- changelog.d/add-pre2018-ptc.added.md | 1 + .../parameters/gov/aca/age_curves/al.yaml | 170 ++++----- .../parameters/gov/aca/age_curves/dc.yaml | 146 ++++---- .../gov/aca/age_curves/default.yaml | 189 +++++----- .../parameters/gov/aca/age_curves/ma.yaml | 146 ++++---- .../parameters/gov/aca/age_curves/mn.yaml | 170 ++++----- .../parameters/gov/aca/age_curves/ms.yaml | 170 ++++----- .../parameters/gov/aca/age_curves/nj.yaml | 143 ++++++++ .../gov/aca/age_curves/nj_in_effect.yaml | 14 + .../parameters/gov/aca/age_curves/ny.yaml | 10 +- .../parameters/gov/aca/age_curves/or.yaml | 170 ++++----- .../parameters/gov/aca/age_curves/ut.yaml | 126 +++---- .../parameters/gov/aca/age_curves/vt.yaml | 4 +- .../gov/aca/family_tier_ratings/ny.yaml | 12 +- .../gov/aca/family_tier_ratings/vt.yaml | 10 +- .../gov/aca/family_tier_states.yaml | 106 +++--- .../final.yaml | 42 ++- .../initial.yaml | 42 ++- .../threshold.yaml | 2 +- policyengine_us/parameters/gov/hhs/fpg.yaml | 16 + policyengine_us/programs.yaml | 3 +- .../reforms/aca/aca_ptc_minimum_premium.py | 18 + ...ired_contribution_percentage_properties.py | 126 ++++++- .../policy/baseline/gov/aca/ptc/aca_ptc.yaml | 339 +++++++++++++++++- .../aca_required_contribution_percentage.yaml | 96 +++++ .../gov/aca/slcsp/family_tier_applies.yaml | 14 + .../gov/aca/slcsp/family_tier_multiplier.yaml | 102 ++++++ .../baseline/gov/aca/slcsp/slcsp_age_0.yaml | 44 +++ .../aca/slcsp/slcsp_age_curve_multiplier.yaml | 68 ++++ .../policy/baseline/gov/hhs/tax_unit_fpg.yaml | 107 ++++++ .../contrib/aca/ptc_minimum_premium.yaml | 60 ++++ .../variables/gov/aca/ptc/aca_ptc.py | 8 +- .../gov/aca/ptc/aca_ptc_before_filing_gate.py | 17 +- .../variables/gov/aca/slspc/slcsp_age_0.py | 22 +- .../aca/slspc/slcsp_age_curve_multiplier.py | 12 + .../aca/slspc/slcsp_family_tier_multiplier.py | 101 +++--- 36 files changed, 2047 insertions(+), 779 deletions(-) create mode 100644 changelog.d/add-pre2018-ptc.added.md create mode 100644 policyengine_us/parameters/gov/aca/age_curves/nj.yaml create mode 100644 policyengine_us/parameters/gov/aca/age_curves/nj_in_effect.yaml create mode 100644 policyengine_us/tests/policy/baseline/gov/hhs/tax_unit_fpg.yaml diff --git a/changelog.d/add-pre2018-ptc.added.md b/changelog.d/add-pre2018-ptc.added.md new file mode 100644 index 00000000000..f1f39c5f0e8 --- /dev/null +++ b/changelog.d/add-pre2018-ptc.added.md @@ -0,0 +1 @@ +Added premium tax credit calculations for 2014–2017 with annual applicable percentages and estimated historical benchmark premiums. diff --git a/policyengine_us/parameters/gov/aca/age_curves/al.yaml b/policyengine_us/parameters/gov/aca/age_curves/al.yaml index 93d3dba2399..28cbcd0ed95 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/al.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/al.yaml @@ -6,174 +6,176 @@ metadata: threshold_unit: int label: ACA premium age curve factors - AL reference: + - title: CMS State Specific Age Curve Variations - August 9, 2013 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf brackets: - threshold: - 2018-01-01: 0 + 2014-01-01: 0 amount: - 2018-01-01: 1.0 + 2014-01-01: 1.0 - threshold: - 2018-01-01: 21 + 2014-01-01: 21 amount: - 2018-01-01: 1.5748 + 2014-01-01: 1.5748 - threshold: - 2018-01-01: 25 + 2014-01-01: 25 amount: - 2018-01-01: 1.5811 + 2014-01-01: 1.5811 - threshold: - 2018-01-01: 26 + 2014-01-01: 26 amount: - 2018-01-01: 1.6126 + 2014-01-01: 1.6126 - threshold: - 2018-01-01: 27 + 2014-01-01: 27 amount: - 2018-01-01: 1.6504 + 2014-01-01: 1.6504 - threshold: - 2018-01-01: 28 + 2014-01-01: 28 amount: - 2018-01-01: 1.7118 + 2014-01-01: 1.7118 - threshold: - 2018-01-01: 29 + 2014-01-01: 29 amount: - 2018-01-01: 1.7622 + 2014-01-01: 1.7622 - threshold: - 2018-01-01: 30 + 2014-01-01: 30 amount: - 2018-01-01: 1.7874 + 2014-01-01: 1.7874 - threshold: - 2018-01-01: 31 + 2014-01-01: 31 amount: - 2018-01-01: 1.8252 + 2014-01-01: 1.8252 - threshold: - 2018-01-01: 32 + 2014-01-01: 32 amount: - 2018-01-01: 1.863 + 2014-01-01: 1.863 - threshold: - 2018-01-01: 33 + 2014-01-01: 33 amount: - 2018-01-01: 1.8866 + 2014-01-01: 1.8866 - threshold: - 2018-01-01: 34 + 2014-01-01: 34 amount: - 2018-01-01: 1.9118 + 2014-01-01: 1.9118 - threshold: - 2018-01-01: 35 + 2014-01-01: 35 amount: - 2018-01-01: 1.9244 + 2014-01-01: 1.9244 - threshold: - 2018-01-01: 36 + 2014-01-01: 36 amount: - 2018-01-01: 1.937 + 2014-01-01: 1.937 - threshold: - 2018-01-01: 37 + 2014-01-01: 37 amount: - 2018-01-01: 1.9496 + 2014-01-01: 1.9496 - threshold: - 2018-01-01: 38 + 2014-01-01: 38 amount: - 2018-01-01: 1.9622 + 2014-01-01: 1.9622 - threshold: - 2018-01-01: 39 + 2014-01-01: 39 amount: - 2018-01-01: 1.9874 + 2014-01-01: 1.9874 - threshold: - 2018-01-01: 40 + 2014-01-01: 40 amount: - 2018-01-01: 2.0126 + 2014-01-01: 2.0126 - threshold: - 2018-01-01: 41 + 2014-01-01: 41 amount: - 2018-01-01: 2.0504 + 2014-01-01: 2.0504 - threshold: - 2018-01-01: 42 + 2014-01-01: 42 amount: - 2018-01-01: 2.0866 + 2014-01-01: 2.0866 - threshold: - 2018-01-01: 43 + 2014-01-01: 43 amount: - 2018-01-01: 2.137 + 2014-01-01: 2.137 - threshold: - 2018-01-01: 44 + 2014-01-01: 44 amount: - 2018-01-01: 2.2 + 2014-01-01: 2.2 - threshold: - 2018-01-01: 45 + 2014-01-01: 45 amount: - 2018-01-01: 2.274 + 2014-01-01: 2.274 - threshold: - 2018-01-01: 46 + 2014-01-01: 46 amount: - 2018-01-01: 2.3622 + 2014-01-01: 2.3622 - threshold: - 2018-01-01: 47 + 2014-01-01: 47 amount: - 2018-01-01: 2.4614 + 2014-01-01: 2.4614 - threshold: - 2018-01-01: 48 + 2014-01-01: 48 amount: - 2018-01-01: 2.5748 + 2014-01-01: 2.5748 - threshold: - 2018-01-01: 49 + 2014-01-01: 49 amount: - 2018-01-01: 2.6866 + 2014-01-01: 2.6866 - threshold: - 2018-01-01: 50 + 2014-01-01: 50 amount: - 2018-01-01: 2.8126 + 2014-01-01: 2.8126 - threshold: - 2018-01-01: 51 + 2014-01-01: 51 amount: - 2018-01-01: 2.937 + 2014-01-01: 2.937 - threshold: - 2018-01-01: 52 + 2014-01-01: 52 amount: - 2018-01-01: 3.074 + 2014-01-01: 3.074 - threshold: - 2018-01-01: 53 + 2014-01-01: 53 amount: - 2018-01-01: 3.2126 + 2014-01-01: 3.2126 - threshold: - 2018-01-01: 54 + 2014-01-01: 54 amount: - 2018-01-01: 3.3622 + 2014-01-01: 3.3622 - threshold: - 2018-01-01: 55 + 2014-01-01: 55 amount: - 2018-01-01: 3.5118 + 2014-01-01: 3.5118 - threshold: - 2018-01-01: 56 + 2014-01-01: 56 amount: - 2018-01-01: 3.674 + 2014-01-01: 3.674 - threshold: - 2018-01-01: 57 + 2014-01-01: 57 amount: - 2018-01-01: 3.8378 + 2014-01-01: 3.8378 - threshold: - 2018-01-01: 58 + 2014-01-01: 58 amount: - 2018-01-01: 4.0126 + 2014-01-01: 4.0126 - threshold: - 2018-01-01: 59 + 2014-01-01: 59 amount: - 2018-01-01: 4.0992 + 2014-01-01: 4.0992 - threshold: - 2018-01-01: 60 + 2014-01-01: 60 amount: - 2018-01-01: 4.274 + 2014-01-01: 4.274 - threshold: - 2018-01-01: 61 + 2014-01-01: 61 amount: - 2018-01-01: 4.4252 + 2014-01-01: 4.4252 - threshold: - 2018-01-01: 62 + 2014-01-01: 62 amount: - 2018-01-01: 4.5244 + 2014-01-01: 4.5244 - threshold: - 2018-01-01: 63 + 2014-01-01: 63 amount: - 2018-01-01: 4.6488 + 2014-01-01: 4.6488 - threshold: - 2018-01-01: 64 + 2014-01-01: 64 amount: - 2018-01-01: 4.7244 + 2014-01-01: 4.7244 diff --git a/policyengine_us/parameters/gov/aca/age_curves/dc.yaml b/policyengine_us/parameters/gov/aca/age_curves/dc.yaml index e42bea16eb3..c68e9d8b6c9 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/dc.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/dc.yaml @@ -6,150 +6,152 @@ metadata: threshold_unit: int label: ACA premium age curve factors - DC reference: + - title: CMS State Specific Age Curve Variations - August 9, 2013 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf brackets: - threshold: - 2018-01-01: 0 + 2014-01-01: 0 amount: - 2018-01-01: 1.0 + 2014-01-01: 1.0 - threshold: - 2018-01-01: 21 + 2014-01-01: 21 amount: - 2018-01-01: 1.1116 + 2014-01-01: 1.1116 - threshold: - 2018-01-01: 28 + 2014-01-01: 28 amount: - 2018-01-01: 1.1376 + 2014-01-01: 1.1376 - threshold: - 2018-01-01: 29 + 2014-01-01: 29 amount: - 2018-01-01: 1.1621 + 2014-01-01: 1.1621 - threshold: - 2018-01-01: 30 + 2014-01-01: 30 amount: - 2018-01-01: 1.1911 + 2014-01-01: 1.1911 - threshold: - 2018-01-01: 31 + 2014-01-01: 31 amount: - 2018-01-01: 1.2217 + 2014-01-01: 1.2217 - threshold: - 2018-01-01: 32 + 2014-01-01: 32 amount: - 2018-01-01: 1.2492 + 2014-01-01: 1.2492 - threshold: - 2018-01-01: 33 + 2014-01-01: 33 amount: - 2018-01-01: 1.2783 + 2014-01-01: 1.2783 - threshold: - 2018-01-01: 34 + 2014-01-01: 34 amount: - 2018-01-01: 1.3089 + 2014-01-01: 1.3089 - threshold: - 2018-01-01: 35 + 2014-01-01: 35 amount: - 2018-01-01: 1.3394 + 2014-01-01: 1.3394 - threshold: - 2018-01-01: 36 + 2014-01-01: 36 amount: - 2018-01-01: 1.37 + 2014-01-01: 1.37 - threshold: - 2018-01-01: 37 + 2014-01-01: 37 amount: - 2018-01-01: 1.4006 + 2014-01-01: 1.4006 - threshold: - 2018-01-01: 38 + 2014-01-01: 38 amount: - 2018-01-01: 1.4174 + 2014-01-01: 1.4174 - threshold: - 2018-01-01: 39 + 2014-01-01: 39 amount: - 2018-01-01: 1.4343 + 2014-01-01: 1.4343 - threshold: - 2018-01-01: 40 + 2014-01-01: 40 amount: - 2018-01-01: 1.4908 + 2014-01-01: 1.4908 - threshold: - 2018-01-01: 41 + 2014-01-01: 41 amount: - 2018-01-01: 1.5489 + 2014-01-01: 1.5489 - threshold: - 2018-01-01: 42 + 2014-01-01: 42 amount: - 2018-01-01: 1.6101 + 2014-01-01: 1.6101 - threshold: - 2018-01-01: 43 + 2014-01-01: 43 amount: - 2018-01-01: 1.6728 + 2014-01-01: 1.6728 - threshold: - 2018-01-01: 44 + 2014-01-01: 44 amount: - 2018-01-01: 1.7385 + 2014-01-01: 1.7385 - threshold: - 2018-01-01: 45 + 2014-01-01: 45 amount: - 2018-01-01: 1.8058 + 2014-01-01: 1.8058 - threshold: - 2018-01-01: 46 + 2014-01-01: 46 amount: - 2018-01-01: 1.8761 + 2014-01-01: 1.8761 - threshold: - 2018-01-01: 47 + 2014-01-01: 47 amount: - 2018-01-01: 1.9495 + 2014-01-01: 1.9495 - threshold: - 2018-01-01: 48 + 2014-01-01: 48 amount: - 2018-01-01: 2.026 + 2014-01-01: 2.026 - threshold: - 2018-01-01: 49 + 2014-01-01: 49 amount: - 2018-01-01: 2.1055 + 2014-01-01: 2.1055 - threshold: - 2018-01-01: 50 + 2014-01-01: 50 amount: - 2018-01-01: 2.1881 + 2014-01-01: 2.1881 - threshold: - 2018-01-01: 51 + 2014-01-01: 51 amount: - 2018-01-01: 2.2737 + 2014-01-01: 2.2737 - threshold: - 2018-01-01: 52 + 2014-01-01: 52 amount: - 2018-01-01: 2.3624 + 2014-01-01: 2.3624 - threshold: - 2018-01-01: 53 + 2014-01-01: 53 amount: - 2018-01-01: 2.4541 + 2014-01-01: 2.4541 - threshold: - 2018-01-01: 54 + 2014-01-01: 54 amount: - 2018-01-01: 2.5505 + 2014-01-01: 2.5505 - threshold: - 2018-01-01: 55 + 2014-01-01: 55 amount: - 2018-01-01: 2.6498 + 2014-01-01: 2.6498 - threshold: - 2018-01-01: 56 + 2014-01-01: 56 amount: - 2018-01-01: 2.7538 + 2014-01-01: 2.7538 - threshold: - 2018-01-01: 57 + 2014-01-01: 57 amount: - 2018-01-01: 2.8609 + 2014-01-01: 2.8609 - threshold: - 2018-01-01: 58 + 2014-01-01: 58 amount: - 2018-01-01: 2.9725 + 2014-01-01: 2.9725 - threshold: - 2018-01-01: 59 + 2014-01-01: 59 amount: - 2018-01-01: 3.0887 + 2014-01-01: 3.0887 - threshold: - 2018-01-01: 60 + 2014-01-01: 60 amount: - 2018-01-01: 3.2095 + 2014-01-01: 3.2095 - threshold: - 2018-01-01: 61 + 2014-01-01: 61 amount: - 2018-01-01: 3.3349 + 2014-01-01: 3.3349 diff --git a/policyengine_us/parameters/gov/aca/age_curves/default.yaml b/policyengine_us/parameters/gov/aca/age_curves/default.yaml index 818f7fd29fb..d377e6f0c78 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/default.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/default.yaml @@ -1,4 +1,4 @@ -description: CMS multiplies base marketplace plan premiums by these age-specific factors to determine age-specific premiums. +description: CMS varies marketplace premiums by age using these factors, normalized to the 2018 age-zero premium. metadata: type: single_amount period: year @@ -6,198 +6,207 @@ metadata: threshold_unit: int label: ACA premium age curve factors - Default reference: + - title: CMS State Specific Age Curve Variations - August 9, 2013 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf brackets: - threshold: - 2018-01-01: 0 + 2014-01-01: 0 amount: + 2014-01-01: 0.8300653594771242 2018-01-01: 1.0 - threshold: - 2018-01-01: 15 + 2014-01-01: 15 amount: + 2014-01-01: 0.8300653594771242 2018-01-01: 1.0889 - threshold: - 2018-01-01: 16 + 2014-01-01: 16 amount: + 2014-01-01: 0.8300653594771242 2018-01-01: 1.1229 - threshold: - 2018-01-01: 17 + 2014-01-01: 17 amount: + 2014-01-01: 0.8300653594771242 2018-01-01: 1.1569 - threshold: - 2018-01-01: 18 + 2014-01-01: 18 amount: + 2014-01-01: 0.8300653594771242 2018-01-01: 1.1935 - threshold: - 2018-01-01: 19 + 2014-01-01: 19 amount: + 2014-01-01: 0.8300653594771242 2018-01-01: 1.2301 - threshold: - 2018-01-01: 20 + 2014-01-01: 20 amount: + 2014-01-01: 0.8300653594771242 2018-01-01: 1.268 - threshold: - 2018-01-01: 21 + 2014-01-01: 21 amount: - 2018-01-01: 1.3072 + 2014-01-01: 1.3072 - threshold: - 2018-01-01: 25 + 2014-01-01: 25 amount: - 2018-01-01: 1.3124 + 2014-01-01: 1.3124 - threshold: - 2018-01-01: 26 + 2014-01-01: 26 amount: - 2018-01-01: 1.3386 + 2014-01-01: 1.3386 - threshold: - 2018-01-01: 27 + 2014-01-01: 27 amount: - 2018-01-01: 1.3699 + 2014-01-01: 1.3699 - threshold: - 2018-01-01: 28 + 2014-01-01: 28 amount: - 2018-01-01: 1.4209 + 2014-01-01: 1.4209 - threshold: - 2018-01-01: 29 + 2014-01-01: 29 amount: - 2018-01-01: 1.4627 + 2014-01-01: 1.4627 - threshold: - 2018-01-01: 30 + 2014-01-01: 30 amount: - 2018-01-01: 1.4837 + 2014-01-01: 1.4837 - threshold: - 2018-01-01: 31 + 2014-01-01: 31 amount: - 2018-01-01: 1.515 + 2014-01-01: 1.515 - threshold: - 2018-01-01: 32 + 2014-01-01: 32 amount: - 2018-01-01: 1.5464 + 2014-01-01: 1.5464 - threshold: - 2018-01-01: 33 + 2014-01-01: 33 amount: - 2018-01-01: 1.566 + 2014-01-01: 1.566 - threshold: - 2018-01-01: 34 + 2014-01-01: 34 amount: - 2018-01-01: 1.5869 + 2014-01-01: 1.5869 - threshold: - 2018-01-01: 35 + 2014-01-01: 35 amount: - 2018-01-01: 1.5974 + 2014-01-01: 1.5974 - threshold: - 2018-01-01: 36 + 2014-01-01: 36 amount: - 2018-01-01: 1.6078 + 2014-01-01: 1.6078 - threshold: - 2018-01-01: 37 + 2014-01-01: 37 amount: - 2018-01-01: 1.6183 + 2014-01-01: 1.6183 - threshold: - 2018-01-01: 38 + 2014-01-01: 38 amount: - 2018-01-01: 1.6288 + 2014-01-01: 1.6288 - threshold: - 2018-01-01: 39 + 2014-01-01: 39 amount: - 2018-01-01: 1.6497 + 2014-01-01: 1.6497 - threshold: - 2018-01-01: 40 + 2014-01-01: 40 amount: - 2018-01-01: 1.6706 + 2014-01-01: 1.6706 - threshold: - 2018-01-01: 41 + 2014-01-01: 41 amount: - 2018-01-01: 1.702 + 2014-01-01: 1.702 - threshold: - 2018-01-01: 42 + 2014-01-01: 42 amount: - 2018-01-01: 1.732 + 2014-01-01: 1.732 - threshold: - 2018-01-01: 43 + 2014-01-01: 43 amount: - 2018-01-01: 1.7739 + 2014-01-01: 1.7739 - threshold: - 2018-01-01: 44 + 2014-01-01: 44 amount: - 2018-01-01: 1.8261 + 2014-01-01: 1.8261 - threshold: - 2018-01-01: 45 + 2014-01-01: 45 amount: - 2018-01-01: 1.8876 + 2014-01-01: 1.8876 - threshold: - 2018-01-01: 46 + 2014-01-01: 46 amount: - 2018-01-01: 1.9608 + 2014-01-01: 1.9608 - threshold: - 2018-01-01: 47 + 2014-01-01: 47 amount: - 2018-01-01: 2.0431 + 2014-01-01: 2.0431 - threshold: - 2018-01-01: 48 + 2014-01-01: 48 amount: - 2018-01-01: 2.1373 + 2014-01-01: 2.1373 - threshold: - 2018-01-01: 49 + 2014-01-01: 49 amount: - 2018-01-01: 2.2301 + 2014-01-01: 2.2301 - threshold: - 2018-01-01: 50 + 2014-01-01: 50 amount: - 2018-01-01: 2.3346 + 2014-01-01: 2.3346 - threshold: - 2018-01-01: 51 + 2014-01-01: 51 amount: - 2018-01-01: 2.4379 + 2014-01-01: 2.4379 - threshold: - 2018-01-01: 52 + 2014-01-01: 52 amount: - 2018-01-01: 2.5516 + 2014-01-01: 2.5516 - threshold: - 2018-01-01: 53 + 2014-01-01: 53 amount: - 2018-01-01: 2.6667 + 2014-01-01: 2.6667 - threshold: - 2018-01-01: 54 + 2014-01-01: 54 amount: - 2018-01-01: 2.7908 + 2014-01-01: 2.7908 - threshold: - 2018-01-01: 55 + 2014-01-01: 55 amount: - 2018-01-01: 2.915 + 2014-01-01: 2.915 - threshold: - 2018-01-01: 56 + 2014-01-01: 56 amount: - 2018-01-01: 3.0497 + 2014-01-01: 3.0497 - threshold: - 2018-01-01: 57 + 2014-01-01: 57 amount: - 2018-01-01: 3.1856 + 2014-01-01: 3.1856 - threshold: - 2018-01-01: 58 + 2014-01-01: 58 amount: - 2018-01-01: 3.3307 + 2014-01-01: 3.3307 - threshold: - 2018-01-01: 59 + 2014-01-01: 59 amount: - 2018-01-01: 3.4026 + 2014-01-01: 3.4026 - threshold: - 2018-01-01: 60 + 2014-01-01: 60 amount: - 2018-01-01: 3.5477 + 2014-01-01: 3.5477 - threshold: - 2018-01-01: 61 + 2014-01-01: 61 amount: - 2018-01-01: 3.6732 + 2014-01-01: 3.6732 - threshold: - 2018-01-01: 62 + 2014-01-01: 62 amount: - 2018-01-01: 3.7556 + 2014-01-01: 3.7556 - threshold: - 2018-01-01: 63 + 2014-01-01: 63 amount: - 2018-01-01: 3.8588 + 2014-01-01: 3.8588 - threshold: - 2018-01-01: 64 + 2014-01-01: 64 amount: - 2018-01-01: 3.9216 + 2014-01-01: 3.9216 diff --git a/policyengine_us/parameters/gov/aca/age_curves/ma.yaml b/policyengine_us/parameters/gov/aca/age_curves/ma.yaml index c085a840c2c..0d8e14cf266 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/ma.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/ma.yaml @@ -6,150 +6,152 @@ metadata: threshold_unit: int label: ACA premium age curve factors - MA reference: + - title: CMS State Specific Age Curve Variations - August 9, 2013 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf brackets: - threshold: - 2018-01-01: 0 + 2014-01-01: 0 amount: - 2018-01-01: 1.0 + 2014-01-01: 1.0 - threshold: - 2018-01-01: 21 + 2014-01-01: 21 amount: - 2018-01-01: 1.5752 + 2014-01-01: 1.5752 - threshold: - 2018-01-01: 27 + 2014-01-01: 27 amount: - 2018-01-01: 1.6245 + 2014-01-01: 1.6245 - threshold: - 2018-01-01: 28 + 2014-01-01: 28 amount: - 2018-01-01: 1.6644 + 2014-01-01: 1.6644 - threshold: - 2018-01-01: 29 + 2014-01-01: 29 amount: - 2018-01-01: 1.6977 + 2014-01-01: 1.6977 - threshold: - 2018-01-01: 30 + 2014-01-01: 30 amount: - 2018-01-01: 1.7137 + 2014-01-01: 1.7137 - threshold: - 2018-01-01: 31 + 2014-01-01: 31 amount: - 2018-01-01: 1.7377 + 2014-01-01: 1.7377 - threshold: - 2018-01-01: 32 + 2014-01-01: 32 amount: - 2018-01-01: 1.7617 + 2014-01-01: 1.7617 - threshold: - 2018-01-01: 33 + 2014-01-01: 33 amount: - 2018-01-01: 1.7763 + 2014-01-01: 1.7763 - threshold: - 2018-01-01: 34 + 2014-01-01: 34 amount: - 2018-01-01: 1.7923 + 2014-01-01: 1.7923 - threshold: - 2018-01-01: 35 + 2014-01-01: 35 amount: - 2018-01-01: 1.8003 + 2014-01-01: 1.8003 - threshold: - 2018-01-01: 36 + 2014-01-01: 36 amount: - 2018-01-01: 1.8083 + 2014-01-01: 1.8083 - threshold: - 2018-01-01: 37 + 2014-01-01: 37 amount: - 2018-01-01: 1.8149 + 2014-01-01: 1.8149 - threshold: - 2018-01-01: 38 + 2014-01-01: 38 amount: - 2018-01-01: 1.8229 + 2014-01-01: 1.8229 - threshold: - 2018-01-01: 39 + 2014-01-01: 39 amount: - 2018-01-01: 1.8389 + 2014-01-01: 1.8389 - threshold: - 2018-01-01: 40 + 2014-01-01: 40 amount: - 2018-01-01: 1.8549 + 2014-01-01: 1.8549 - threshold: - 2018-01-01: 41 + 2014-01-01: 41 amount: - 2018-01-01: 1.8775 + 2014-01-01: 1.8775 - threshold: - 2018-01-01: 42 + 2014-01-01: 42 amount: - 2018-01-01: 1.9001 + 2014-01-01: 1.9001 - threshold: - 2018-01-01: 43 + 2014-01-01: 43 amount: - 2018-01-01: 1.9308 + 2014-01-01: 1.9308 - threshold: - 2018-01-01: 44 + 2014-01-01: 44 amount: - 2018-01-01: 1.968 + 2014-01-01: 1.968 - threshold: - 2018-01-01: 45 + 2014-01-01: 45 amount: - 2018-01-01: 2.012 + 2014-01-01: 2.012 - threshold: - 2018-01-01: 46 + 2014-01-01: 46 amount: - 2018-01-01: 2.0639 + 2014-01-01: 2.0639 - threshold: - 2018-01-01: 47 + 2014-01-01: 47 amount: - 2018-01-01: 2.1212 + 2014-01-01: 2.1212 - threshold: - 2018-01-01: 48 + 2014-01-01: 48 amount: - 2018-01-01: 2.1851 + 2014-01-01: 2.1851 - threshold: - 2018-01-01: 49 + 2014-01-01: 49 amount: - 2018-01-01: 2.2477 + 2014-01-01: 2.2477 - threshold: - 2018-01-01: 50 + 2014-01-01: 50 amount: - 2018-01-01: 2.3182 + 2014-01-01: 2.3182 - threshold: - 2018-01-01: 51 + 2014-01-01: 51 amount: - 2018-01-01: 2.3862 + 2014-01-01: 2.3862 - threshold: - 2018-01-01: 52 + 2014-01-01: 52 amount: - 2018-01-01: 2.4594 + 2014-01-01: 2.4594 - threshold: - 2018-01-01: 53 + 2014-01-01: 53 amount: - 2018-01-01: 2.5326 + 2014-01-01: 2.5326 - threshold: - 2018-01-01: 54 + 2014-01-01: 54 amount: - 2018-01-01: 2.6112 + 2014-01-01: 2.6112 - threshold: - 2018-01-01: 55 + 2014-01-01: 55 amount: - 2018-01-01: 2.6884 + 2014-01-01: 2.6884 - threshold: - 2018-01-01: 56 + 2014-01-01: 56 amount: - 2018-01-01: 2.7696 + 2014-01-01: 2.7696 - threshold: - 2018-01-01: 57 + 2014-01-01: 57 amount: - 2018-01-01: 2.8522 + 2014-01-01: 2.8522 - threshold: - 2018-01-01: 58 + 2014-01-01: 58 amount: - 2018-01-01: 2.9374 + 2014-01-01: 2.9374 - threshold: - 2018-01-01: 59 + 2014-01-01: 59 amount: - 2018-01-01: 3.036 + 2014-01-01: 3.036 - threshold: - 2018-01-01: 60 + 2014-01-01: 60 amount: - 2018-01-01: 3.1491 + 2014-01-01: 3.1491 diff --git a/policyengine_us/parameters/gov/aca/age_curves/mn.yaml b/policyengine_us/parameters/gov/aca/age_curves/mn.yaml index 630185b2253..6aad5bc1772 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/mn.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/mn.yaml @@ -6,174 +6,176 @@ metadata: threshold_unit: int label: ACA premium age curve factors - MN reference: + - title: CMS State Specific Age Curve Variations - August 9, 2013 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf brackets: - threshold: - 2018-01-01: 0 + 2014-01-01: 0 amount: - 2018-01-01: 1.0 + 2014-01-01: 1.0 - threshold: - 2018-01-01: 21 + 2014-01-01: 21 amount: - 2018-01-01: 1.1236 + 2014-01-01: 1.1236 - threshold: - 2018-01-01: 25 + 2014-01-01: 25 amount: - 2018-01-01: 1.1281 + 2014-01-01: 1.1281 - threshold: - 2018-01-01: 26 + 2014-01-01: 26 amount: - 2018-01-01: 1.1506 + 2014-01-01: 1.1506 - threshold: - 2018-01-01: 27 + 2014-01-01: 27 amount: - 2018-01-01: 1.1775 + 2014-01-01: 1.1775 - threshold: - 2018-01-01: 28 + 2014-01-01: 28 amount: - 2018-01-01: 1.2213 + 2014-01-01: 1.2213 - threshold: - 2018-01-01: 29 + 2014-01-01: 29 amount: - 2018-01-01: 1.2573 + 2014-01-01: 1.2573 - threshold: - 2018-01-01: 30 + 2014-01-01: 30 amount: - 2018-01-01: 1.2753 + 2014-01-01: 1.2753 - threshold: - 2018-01-01: 31 + 2014-01-01: 31 amount: - 2018-01-01: 1.3022 + 2014-01-01: 1.3022 - threshold: - 2018-01-01: 32 + 2014-01-01: 32 amount: - 2018-01-01: 1.3292 + 2014-01-01: 1.3292 - threshold: - 2018-01-01: 33 + 2014-01-01: 33 amount: - 2018-01-01: 1.3461 + 2014-01-01: 1.3461 - threshold: - 2018-01-01: 34 + 2014-01-01: 34 amount: - 2018-01-01: 1.364 + 2014-01-01: 1.364 - threshold: - 2018-01-01: 35 + 2014-01-01: 35 amount: - 2018-01-01: 1.373 + 2014-01-01: 1.373 - threshold: - 2018-01-01: 36 + 2014-01-01: 36 amount: - 2018-01-01: 1.382 + 2014-01-01: 1.382 - threshold: - 2018-01-01: 37 + 2014-01-01: 37 amount: - 2018-01-01: 1.391 + 2014-01-01: 1.391 - threshold: - 2018-01-01: 38 + 2014-01-01: 38 amount: - 2018-01-01: 1.4 + 2014-01-01: 1.4 - threshold: - 2018-01-01: 39 + 2014-01-01: 39 amount: - 2018-01-01: 1.418 + 2014-01-01: 1.418 - threshold: - 2018-01-01: 40 + 2014-01-01: 40 amount: - 2018-01-01: 1.436 + 2014-01-01: 1.436 - threshold: - 2018-01-01: 41 + 2014-01-01: 41 amount: - 2018-01-01: 1.4629 + 2014-01-01: 1.4629 - threshold: - 2018-01-01: 42 + 2014-01-01: 42 amount: - 2018-01-01: 1.4888 + 2014-01-01: 1.4888 - threshold: - 2018-01-01: 43 + 2014-01-01: 43 amount: - 2018-01-01: 1.5247 + 2014-01-01: 1.5247 - threshold: - 2018-01-01: 44 + 2014-01-01: 44 amount: - 2018-01-01: 1.5697 + 2014-01-01: 1.5697 - threshold: - 2018-01-01: 45 + 2014-01-01: 45 amount: - 2018-01-01: 1.6225 + 2014-01-01: 1.6225 - threshold: - 2018-01-01: 46 + 2014-01-01: 46 amount: - 2018-01-01: 1.6854 + 2014-01-01: 1.6854 - threshold: - 2018-01-01: 47 + 2014-01-01: 47 amount: - 2018-01-01: 1.7562 + 2014-01-01: 1.7562 - threshold: - 2018-01-01: 48 + 2014-01-01: 48 amount: - 2018-01-01: 1.8371 + 2014-01-01: 1.8371 - threshold: - 2018-01-01: 49 + 2014-01-01: 49 amount: - 2018-01-01: 1.9169 + 2014-01-01: 1.9169 - threshold: - 2018-01-01: 50 + 2014-01-01: 50 amount: - 2018-01-01: 2.0067 + 2014-01-01: 2.0067 - threshold: - 2018-01-01: 51 + 2014-01-01: 51 amount: - 2018-01-01: 2.0955 + 2014-01-01: 2.0955 - threshold: - 2018-01-01: 52 + 2014-01-01: 52 amount: - 2018-01-01: 2.1933 + 2014-01-01: 2.1933 - threshold: - 2018-01-01: 53 + 2014-01-01: 53 amount: - 2018-01-01: 2.2921 + 2014-01-01: 2.2921 - threshold: - 2018-01-01: 54 + 2014-01-01: 54 amount: - 2018-01-01: 2.3989 + 2014-01-01: 2.3989 - threshold: - 2018-01-01: 55 + 2014-01-01: 55 amount: - 2018-01-01: 2.5056 + 2014-01-01: 2.5056 - threshold: - 2018-01-01: 56 + 2014-01-01: 56 amount: - 2018-01-01: 2.6213 + 2014-01-01: 2.6213 - threshold: - 2018-01-01: 57 + 2014-01-01: 57 amount: - 2018-01-01: 2.7382 + 2014-01-01: 2.7382 - threshold: - 2018-01-01: 58 + 2014-01-01: 58 amount: - 2018-01-01: 2.8629 + 2014-01-01: 2.8629 - threshold: - 2018-01-01: 59 + 2014-01-01: 59 amount: - 2018-01-01: 2.9247 + 2014-01-01: 2.9247 - threshold: - 2018-01-01: 60 + 2014-01-01: 60 amount: - 2018-01-01: 3.0494 + 2014-01-01: 3.0494 - threshold: - 2018-01-01: 61 + 2014-01-01: 61 amount: - 2018-01-01: 3.1573 + 2014-01-01: 3.1573 - threshold: - 2018-01-01: 62 + 2014-01-01: 62 amount: - 2018-01-01: 3.2281 + 2014-01-01: 3.2281 - threshold: - 2018-01-01: 63 + 2014-01-01: 63 amount: - 2018-01-01: 3.3169 + 2014-01-01: 3.3169 - threshold: - 2018-01-01: 64 + 2014-01-01: 64 amount: - 2018-01-01: 3.3708 + 2014-01-01: 3.3708 diff --git a/policyengine_us/parameters/gov/aca/age_curves/ms.yaml b/policyengine_us/parameters/gov/aca/age_curves/ms.yaml index 1009e29fcc6..6ab995fe164 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/ms.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/ms.yaml @@ -5,174 +5,176 @@ metadata: threshold_unit: int label: ACA premium age curve factors - MS reference: + - title: CMS State Specific Age Curve Variations - August 9, 2013 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf brackets: - threshold: - 2018-01-01: 0 + 2014-01-01: 0 amount: - 2018-01-01: 1.0 + 2014-01-01: 1.0 - threshold: - 2018-01-01: 21 + 2014-01-01: 21 amount: - 2018-01-01: 1.5748 + 2014-01-01: 1.5748 - threshold: - 2018-01-01: 25 + 2014-01-01: 25 amount: - 2018-01-01: 1.5811 + 2014-01-01: 1.5811 - threshold: - 2018-01-01: 26 + 2014-01-01: 26 amount: - 2018-01-01: 1.6126 + 2014-01-01: 1.6126 - threshold: - 2018-01-01: 27 + 2014-01-01: 27 amount: - 2018-01-01: 1.6504 + 2014-01-01: 1.6504 - threshold: - 2018-01-01: 28 + 2014-01-01: 28 amount: - 2018-01-01: 1.7118 + 2014-01-01: 1.7118 - threshold: - 2018-01-01: 29 + 2014-01-01: 29 amount: - 2018-01-01: 1.7622 + 2014-01-01: 1.7622 - threshold: - 2018-01-01: 30 + 2014-01-01: 30 amount: - 2018-01-01: 1.7874 + 2014-01-01: 1.7874 - threshold: - 2018-01-01: 31 + 2014-01-01: 31 amount: - 2018-01-01: 1.8252 + 2014-01-01: 1.8252 - threshold: - 2018-01-01: 32 + 2014-01-01: 32 amount: - 2018-01-01: 1.863 + 2014-01-01: 1.863 - threshold: - 2018-01-01: 33 + 2014-01-01: 33 amount: - 2018-01-01: 1.8866 + 2014-01-01: 1.8866 - threshold: - 2018-01-01: 34 + 2014-01-01: 34 amount: - 2018-01-01: 1.9118 + 2014-01-01: 1.9118 - threshold: - 2018-01-01: 35 + 2014-01-01: 35 amount: - 2018-01-01: 1.9244 + 2014-01-01: 1.9244 - threshold: - 2018-01-01: 36 + 2014-01-01: 36 amount: - 2018-01-01: 1.937 + 2014-01-01: 1.937 - threshold: - 2018-01-01: 37 + 2014-01-01: 37 amount: - 2018-01-01: 1.9496 + 2014-01-01: 1.9496 - threshold: - 2018-01-01: 38 + 2014-01-01: 38 amount: - 2018-01-01: 1.9622 + 2014-01-01: 1.9622 - threshold: - 2018-01-01: 39 + 2014-01-01: 39 amount: - 2018-01-01: 1.9874 + 2014-01-01: 1.9874 - threshold: - 2018-01-01: 40 + 2014-01-01: 40 amount: - 2018-01-01: 2.0126 + 2014-01-01: 2.0126 - threshold: - 2018-01-01: 41 + 2014-01-01: 41 amount: - 2018-01-01: 2.0504 + 2014-01-01: 2.0504 - threshold: - 2018-01-01: 42 + 2014-01-01: 42 amount: - 2018-01-01: 2.0866 + 2014-01-01: 2.0866 - threshold: - 2018-01-01: 43 + 2014-01-01: 43 amount: - 2018-01-01: 2.137 + 2014-01-01: 2.137 - threshold: - 2018-01-01: 44 + 2014-01-01: 44 amount: - 2018-01-01: 2.2 + 2014-01-01: 2.2 - threshold: - 2018-01-01: 45 + 2014-01-01: 45 amount: - 2018-01-01: 2.274 + 2014-01-01: 2.274 - threshold: - 2018-01-01: 46 + 2014-01-01: 46 amount: - 2018-01-01: 2.3622 + 2014-01-01: 2.3622 - threshold: - 2018-01-01: 47 + 2014-01-01: 47 amount: - 2018-01-01: 2.4614 + 2014-01-01: 2.4614 - threshold: - 2018-01-01: 48 + 2014-01-01: 48 amount: - 2018-01-01: 2.5748 + 2014-01-01: 2.5748 - threshold: - 2018-01-01: 49 + 2014-01-01: 49 amount: - 2018-01-01: 2.6866 + 2014-01-01: 2.6866 - threshold: - 2018-01-01: 50 + 2014-01-01: 50 amount: - 2018-01-01: 2.8126 + 2014-01-01: 2.8126 - threshold: - 2018-01-01: 51 + 2014-01-01: 51 amount: - 2018-01-01: 2.937 + 2014-01-01: 2.937 - threshold: - 2018-01-01: 52 + 2014-01-01: 52 amount: - 2018-01-01: 3.074 + 2014-01-01: 3.074 - threshold: - 2018-01-01: 53 + 2014-01-01: 53 amount: - 2018-01-01: 3.2126 + 2014-01-01: 3.2126 - threshold: - 2018-01-01: 54 + 2014-01-01: 54 amount: - 2018-01-01: 3.3622 + 2014-01-01: 3.3622 - threshold: - 2018-01-01: 55 + 2014-01-01: 55 amount: - 2018-01-01: 3.5118 + 2014-01-01: 3.5118 - threshold: - 2018-01-01: 56 + 2014-01-01: 56 amount: - 2018-01-01: 3.674 + 2014-01-01: 3.674 - threshold: - 2018-01-01: 57 + 2014-01-01: 57 amount: - 2018-01-01: 3.8378 + 2014-01-01: 3.8378 - threshold: - 2018-01-01: 58 + 2014-01-01: 58 amount: - 2018-01-01: 4.0126 + 2014-01-01: 4.0126 - threshold: - 2018-01-01: 59 + 2014-01-01: 59 amount: - 2018-01-01: 4.0992 + 2014-01-01: 4.0992 - threshold: - 2018-01-01: 60 + 2014-01-01: 60 amount: - 2018-01-01: 4.274 + 2014-01-01: 4.274 - threshold: - 2018-01-01: 61 + 2014-01-01: 61 amount: - 2018-01-01: 4.4252 + 2014-01-01: 4.4252 - threshold: - 2018-01-01: 62 + 2014-01-01: 62 amount: - 2018-01-01: 4.5244 + 2014-01-01: 4.5244 - threshold: - 2018-01-01: 63 + 2014-01-01: 63 amount: - 2018-01-01: 4.6488 + 2014-01-01: 4.6488 - threshold: - 2018-01-01: 64 + 2014-01-01: 64 amount: - 2018-01-01: 4.7244 + 2014-01-01: 4.7244 diff --git a/policyengine_us/parameters/gov/aca/age_curves/nj.yaml b/policyengine_us/parameters/gov/aca/age_curves/nj.yaml new file mode 100644 index 00000000000..edea1339690 --- /dev/null +++ b/policyengine_us/parameters/gov/aca/age_curves/nj.yaml @@ -0,0 +1,143 @@ +description: New Jersey uses these premium ratios for its historical ACA age curve, before normalization to the benchmark premium. +metadata: + type: single_amount + period: year + amount_unit: /1 + threshold_unit: year + label: ACA historical premium age curve ratios - NJ + reference: + - title: CMS State Specific Age Curve Variations - August 9, 2013 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 +brackets: +- threshold: + 2014-01-01: 0 + amount: + 2014-01-01: 0.75 +- threshold: + 2014-01-01: 21 + amount: + 2014-01-01: 1.25 +- threshold: + 2014-01-01: 29 + amount: + 2014-01-01: 1.275 +- threshold: + 2014-01-01: 30 + amount: + 2014-01-01: 1.287 +- threshold: + 2014-01-01: 31 + amount: + 2014-01-01: 1.305 +- threshold: + 2014-01-01: 32 + amount: + 2014-01-01: 1.323 +- threshold: + 2014-01-01: 33 + amount: + 2014-01-01: 1.334 +- threshold: + 2014-01-01: 34 + amount: + 2014-01-01: 1.346 +- threshold: + 2014-01-01: 35 + amount: + 2014-01-01: 1.352 +- threshold: + 2014-01-01: 36 + amount: + 2014-01-01: 1.358 +- threshold: + 2014-01-01: 37 + amount: + 2014-01-01: 1.363 +- threshold: + 2014-01-01: 38 + amount: + 2014-01-01: 1.369 +- threshold: + 2014-01-01: 39 + amount: + 2014-01-01: 1.381 +- threshold: + 2014-01-01: 40 + amount: + 2014-01-01: 1.393 +- threshold: + 2014-01-01: 41 + amount: + 2014-01-01: 1.41 +- threshold: + 2014-01-01: 42 + amount: + 2014-01-01: 1.427 +- threshold: + 2014-01-01: 43 + amount: + 2014-01-01: 1.45 +- threshold: + 2014-01-01: 44 + amount: + 2014-01-01: 1.478 +- threshold: + 2014-01-01: 45 + amount: + 2014-01-01: 1.511 +- threshold: + 2014-01-01: 46 + amount: + 2014-01-01: 1.55 +- threshold: + 2014-01-01: 47 + amount: + 2014-01-01: 1.593 +- threshold: + 2014-01-01: 48 + amount: + 2014-01-01: 1.641 +- threshold: + 2014-01-01: 49 + amount: + 2014-01-01: 1.688 +- threshold: + 2014-01-01: 50 + amount: + 2014-01-01: 1.741 +- threshold: + 2014-01-01: 51 + amount: + 2014-01-01: 1.792 +- threshold: + 2014-01-01: 52 + amount: + 2014-01-01: 1.847 +- threshold: + 2014-01-01: 53 + amount: + 2014-01-01: 1.902 +- threshold: + 2014-01-01: 54 + amount: + 2014-01-01: 1.961 +- threshold: + 2014-01-01: 55 + amount: + 2014-01-01: 2.019 +- threshold: + 2014-01-01: 56 + amount: + 2014-01-01: 2.08 +- threshold: + 2014-01-01: 57 + amount: + 2014-01-01: 2.142 +- threshold: + 2014-01-01: 58 + amount: + 2014-01-01: 2.206 +- threshold: + 2014-01-01: 59 + amount: + 2014-01-01: 2.28 diff --git a/policyengine_us/parameters/gov/aca/age_curves/nj_in_effect.yaml b/policyengine_us/parameters/gov/aca/age_curves/nj_in_effect.yaml new file mode 100644 index 00000000000..8c729d23261 --- /dev/null +++ b/policyengine_us/parameters/gov/aca/age_curves/nj_in_effect.yaml @@ -0,0 +1,14 @@ +description: New Jersey uses its state-specific age curve for individual marketplace premiums during this period. +values: + 0000-01-01: false + 2014-01-01: true + 2018-01-01: false +metadata: + unit: bool + period: year + label: New Jersey ACA state-specific individual age curve in effect + reference: + - title: CMS State Specific Age Curve Variations - August 9, 2013 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 + - title: CMS State Specific Age Curve Variations - May 31, 2017 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf#page=1 diff --git a/policyengine_us/parameters/gov/aca/age_curves/ny.yaml b/policyengine_us/parameters/gov/aca/age_curves/ny.yaml index f6541366424..d9bea571094 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/ny.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/ny.yaml @@ -6,14 +6,16 @@ metadata: threshold_unit: year label: ACA premium age curve factors - NY reference: + - title: New York DFS 2017 individual rate filing - Exhibit 25 Rating Tiers + href: https://myportal.dfs.ny.gov/documents/538523/10367891/Aetna%2BLife_IND_OFFX_AETN-130549431_Application.pdf/cb70f6f0-e73e-4d0a-a946-f5259ec21b55#page=77 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/state-rating brackets: - threshold: - 2018-01-01: 0 + 2014-01-01: 0 amount: - 2018-01-01: 0.412 + 2014-01-01: 0.412 - threshold: - 2018-01-01: 21 + 2014-01-01: 21 amount: - 2018-01-01: 1.0 + 2014-01-01: 1.0 diff --git a/policyengine_us/parameters/gov/aca/age_curves/or.yaml b/policyengine_us/parameters/gov/aca/age_curves/or.yaml index 9da4dffca76..120cf013b34 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/or.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/or.yaml @@ -6,174 +6,176 @@ metadata: threshold_unit: int label: ACA premium age curve factors - OR reference: + - title: CMS State Specific Age Curve Variations - August 9, 2013 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf brackets: - threshold: - 2018-01-01: 0 + 2014-01-01: 0 amount: - 2018-01-01: 1.0 + 2014-01-01: 1.0 - threshold: - 2018-01-01: 21 + 2014-01-01: 21 amount: - 2018-01-01: 1.5748 + 2014-01-01: 1.5748 - threshold: - 2018-01-01: 25 + 2014-01-01: 25 amount: - 2018-01-01: 1.5811 + 2014-01-01: 1.5811 - threshold: - 2018-01-01: 26 + 2014-01-01: 26 amount: - 2018-01-01: 1.6126 + 2014-01-01: 1.6126 - threshold: - 2018-01-01: 27 + 2014-01-01: 27 amount: - 2018-01-01: 1.6504 + 2014-01-01: 1.6504 - threshold: - 2018-01-01: 28 + 2014-01-01: 28 amount: - 2018-01-01: 1.7118 + 2014-01-01: 1.7118 - threshold: - 2018-01-01: 29 + 2014-01-01: 29 amount: - 2018-01-01: 1.7622 + 2014-01-01: 1.7622 - threshold: - 2018-01-01: 30 + 2014-01-01: 30 amount: - 2018-01-01: 1.7874 + 2014-01-01: 1.7874 - threshold: - 2018-01-01: 31 + 2014-01-01: 31 amount: - 2018-01-01: 1.8252 + 2014-01-01: 1.8252 - threshold: - 2018-01-01: 32 + 2014-01-01: 32 amount: - 2018-01-01: 1.863 + 2014-01-01: 1.863 - threshold: - 2018-01-01: 33 + 2014-01-01: 33 amount: - 2018-01-01: 1.8866 + 2014-01-01: 1.8866 - threshold: - 2018-01-01: 34 + 2014-01-01: 34 amount: - 2018-01-01: 1.9118 + 2014-01-01: 1.9118 - threshold: - 2018-01-01: 35 + 2014-01-01: 35 amount: - 2018-01-01: 1.9244 + 2014-01-01: 1.9244 - threshold: - 2018-01-01: 36 + 2014-01-01: 36 amount: - 2018-01-01: 1.937 + 2014-01-01: 1.937 - threshold: - 2018-01-01: 37 + 2014-01-01: 37 amount: - 2018-01-01: 1.9496 + 2014-01-01: 1.9496 - threshold: - 2018-01-01: 38 + 2014-01-01: 38 amount: - 2018-01-01: 1.9622 + 2014-01-01: 1.9622 - threshold: - 2018-01-01: 39 + 2014-01-01: 39 amount: - 2018-01-01: 1.9874 + 2014-01-01: 1.9874 - threshold: - 2018-01-01: 40 + 2014-01-01: 40 amount: - 2018-01-01: 2.0126 + 2014-01-01: 2.0126 - threshold: - 2018-01-01: 41 + 2014-01-01: 41 amount: - 2018-01-01: 2.0504 + 2014-01-01: 2.0504 - threshold: - 2018-01-01: 42 + 2014-01-01: 42 amount: - 2018-01-01: 2.0866 + 2014-01-01: 2.0866 - threshold: - 2018-01-01: 43 + 2014-01-01: 43 amount: - 2018-01-01: 2.137 + 2014-01-01: 2.137 - threshold: - 2018-01-01: 44 + 2014-01-01: 44 amount: - 2018-01-01: 2.2 + 2014-01-01: 2.2 - threshold: - 2018-01-01: 45 + 2014-01-01: 45 amount: - 2018-01-01: 2.274 + 2014-01-01: 2.274 - threshold: - 2018-01-01: 46 + 2014-01-01: 46 amount: - 2018-01-01: 2.3622 + 2014-01-01: 2.3622 - threshold: - 2018-01-01: 47 + 2014-01-01: 47 amount: - 2018-01-01: 2.4614 + 2014-01-01: 2.4614 - threshold: - 2018-01-01: 48 + 2014-01-01: 48 amount: - 2018-01-01: 2.5748 + 2014-01-01: 2.5748 - threshold: - 2018-01-01: 49 + 2014-01-01: 49 amount: - 2018-01-01: 2.6866 + 2014-01-01: 2.6866 - threshold: - 2018-01-01: 50 + 2014-01-01: 50 amount: - 2018-01-01: 2.8126 + 2014-01-01: 2.8126 - threshold: - 2018-01-01: 51 + 2014-01-01: 51 amount: - 2018-01-01: 2.937 + 2014-01-01: 2.937 - threshold: - 2018-01-01: 52 + 2014-01-01: 52 amount: - 2018-01-01: 3.074 + 2014-01-01: 3.074 - threshold: - 2018-01-01: 53 + 2014-01-01: 53 amount: - 2018-01-01: 3.2126 + 2014-01-01: 3.2126 - threshold: - 2018-01-01: 54 + 2014-01-01: 54 amount: - 2018-01-01: 3.3622 + 2014-01-01: 3.3622 - threshold: - 2018-01-01: 55 + 2014-01-01: 55 amount: - 2018-01-01: 3.5118 + 2014-01-01: 3.5118 - threshold: - 2018-01-01: 56 + 2014-01-01: 56 amount: - 2018-01-01: 3.674 + 2014-01-01: 3.674 - threshold: - 2018-01-01: 57 + 2014-01-01: 57 amount: - 2018-01-01: 3.8378 + 2014-01-01: 3.8378 - threshold: - 2018-01-01: 58 + 2014-01-01: 58 amount: - 2018-01-01: 4.0126 + 2014-01-01: 4.0126 - threshold: - 2018-01-01: 59 + 2014-01-01: 59 amount: - 2018-01-01: 4.0992 + 2014-01-01: 4.0992 - threshold: - 2018-01-01: 60 + 2014-01-01: 60 amount: - 2018-01-01: 4.274 + 2014-01-01: 4.274 - threshold: - 2018-01-01: 61 + 2014-01-01: 61 amount: - 2018-01-01: 4.4252 + 2014-01-01: 4.4252 - threshold: - 2018-01-01: 62 + 2014-01-01: 62 amount: - 2018-01-01: 4.5244 + 2014-01-01: 4.5244 - threshold: - 2018-01-01: 63 + 2014-01-01: 63 amount: - 2018-01-01: 4.6488 + 2014-01-01: 4.6488 - threshold: - 2018-01-01: 64 + 2014-01-01: 64 amount: - 2018-01-01: 4.7244 + 2014-01-01: 4.7244 diff --git a/policyengine_us/parameters/gov/aca/age_curves/ut.yaml b/policyengine_us/parameters/gov/aca/age_curves/ut.yaml index 1d5c5ee48a2..8c501028f67 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/ut.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/ut.yaml @@ -6,130 +6,132 @@ metadata: threshold_unit: int label: ACA premium age curve factors - UT reference: + - title: CMS State Specific Age Curve Variations - August 9, 2013 + href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf brackets: - threshold: - 2018-01-01: 0 + 2014-01-01: 0 amount: - 2018-01-01: 1.0 + 2014-01-01: 1.0 - threshold: - 2018-01-01: 21 + 2014-01-01: 21 amount: - 2018-01-01: 1.261 + 2014-01-01: 1.261 - threshold: - 2018-01-01: 22 + 2014-01-01: 22 amount: - 2018-01-01: 1.3241 + 2014-01-01: 1.3241 - threshold: - 2018-01-01: 23 + 2014-01-01: 23 amount: - 2018-01-01: 1.4035 + 2014-01-01: 1.4035 - threshold: - 2018-01-01: 24 + 2014-01-01: 24 amount: - 2018-01-01: 1.5019 + 2014-01-01: 1.5019 - threshold: - 2018-01-01: 25 + 2014-01-01: 25 amount: - 2018-01-01: 1.6368 + 2014-01-01: 1.6368 - threshold: - 2018-01-01: 26 + 2014-01-01: 26 amount: - 2018-01-01: 1.7188 + 2014-01-01: 1.7188 - threshold: - 2018-01-01: 27 + 2014-01-01: 27 amount: - 2018-01-01: 1.7528 + 2014-01-01: 1.7528 - threshold: - 2018-01-01: 37 + 2014-01-01: 37 amount: - 2018-01-01: 1.7705 + 2014-01-01: 1.7705 - threshold: - 2018-01-01: 38 + 2014-01-01: 38 amount: - 2018-01-01: 1.797 + 2014-01-01: 1.797 - threshold: - 2018-01-01: 39 + 2014-01-01: 39 amount: - 2018-01-01: 1.8285 + 2014-01-01: 1.8285 - threshold: - 2018-01-01: 40 + 2014-01-01: 40 amount: - 2018-01-01: 1.8651 + 2014-01-01: 1.8651 - threshold: - 2018-01-01: 41 + 2014-01-01: 41 amount: - 2018-01-01: 1.9117 + 2014-01-01: 1.9117 - threshold: - 2018-01-01: 42 + 2014-01-01: 42 amount: - 2018-01-01: 1.9697 + 2014-01-01: 1.9697 - threshold: - 2018-01-01: 43 + 2014-01-01: 43 amount: - 2018-01-01: 2.0378 + 2014-01-01: 2.0378 - threshold: - 2018-01-01: 44 + 2014-01-01: 44 amount: - 2018-01-01: 2.1198 + 2014-01-01: 2.1198 - threshold: - 2018-01-01: 45 + 2014-01-01: 45 amount: - 2018-01-01: 2.2043 + 2014-01-01: 2.2043 - threshold: - 2018-01-01: 46 + 2014-01-01: 46 amount: - 2018-01-01: 2.2926 + 2014-01-01: 2.2926 - threshold: - 2018-01-01: 47 + 2014-01-01: 47 amount: - 2018-01-01: 2.3846 + 2014-01-01: 2.3846 - threshold: - 2018-01-01: 48 + 2014-01-01: 48 amount: - 2018-01-01: 2.4792 + 2014-01-01: 2.4792 - threshold: - 2018-01-01: 49 + 2014-01-01: 49 amount: - 2018-01-01: 2.5788 + 2014-01-01: 2.5788 - threshold: - 2018-01-01: 50 + 2014-01-01: 50 amount: - 2018-01-01: 2.6822 + 2014-01-01: 2.6822 - threshold: - 2018-01-01: 51 + 2014-01-01: 51 amount: - 2018-01-01: 2.7894 + 2014-01-01: 2.7894 - threshold: - 2018-01-01: 52 + 2014-01-01: 52 amount: - 2018-01-01: 2.9004 + 2014-01-01: 2.9004 - threshold: - 2018-01-01: 53 + 2014-01-01: 53 amount: - 2018-01-01: 3.0164 + 2014-01-01: 3.0164 - threshold: - 2018-01-01: 54 + 2014-01-01: 54 amount: - 2018-01-01: 3.1375 + 2014-01-01: 3.1375 - threshold: - 2018-01-01: 55 + 2014-01-01: 55 amount: - 2018-01-01: 3.2636 + 2014-01-01: 3.2636 - threshold: - 2018-01-01: 56 + 2014-01-01: 56 amount: - 2018-01-01: 3.3934 + 2014-01-01: 3.3934 - threshold: - 2018-01-01: 57 + 2014-01-01: 57 amount: - 2018-01-01: 3.5296 + 2014-01-01: 3.5296 - threshold: - 2018-01-01: 58 + 2014-01-01: 58 amount: - 2018-01-01: 3.6709 + 2014-01-01: 3.6709 - threshold: - 2018-01-01: 59 + 2014-01-01: 59 amount: - 2018-01-01: 3.7831 + 2014-01-01: 3.7831 diff --git a/policyengine_us/parameters/gov/aca/age_curves/vt.yaml b/policyengine_us/parameters/gov/aca/age_curves/vt.yaml index ba9ab99b2fc..a8fa77a1327 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/vt.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/vt.yaml @@ -5,7 +5,9 @@ metadata: period: year label: ACA premium age curve factors - VT reference: + - title: Vermont DFR Order Docket 13-002-I - 2014 tier structure + href: https://dfr.vermont.gov/sites/finreg/files/regbul/dfr-order-docket-13-002-i-vermont-health-benefits-exchange.pdf#page=2 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/state-rating#age values: - 2018-01-01: 1.0 + 2014-01-01: 1.0 diff --git a/policyengine_us/parameters/gov/aca/family_tier_ratings/ny.yaml b/policyengine_us/parameters/gov/aca/family_tier_ratings/ny.yaml index ca6f054db42..49f70966fcf 100644 --- a/policyengine_us/parameters/gov/aca/family_tier_ratings/ny.yaml +++ b/policyengine_us/parameters/gov/aca/family_tier_ratings/ny.yaml @@ -7,16 +7,18 @@ metadata: - slcsp_family_tier_category label: ACA premium family tier multipliers - NY reference: + - title: New York DFS 2017 individual rate filing - Exhibit 25 Rating Tiers + href: https://myportal.dfs.ny.gov/documents/538523/10367891/Aetna%2BLife_IND_OFFX_AETN-130549431_Application.pdf/cb70f6f0-e73e-4d0a-a946-f5259ec21b55#page=77 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/state-rating ONE_ADULT: - 2018-01-01: 1.00 + 2014-01-01: 1.00 TWO_ADULTS: - 2018-01-01: 2.00 + 2014-01-01: 2.00 ONE_ADULT_AND_ONE_OR_MORE_CHILDREN: - 2018-01-01: 1.70 + 2014-01-01: 1.70 TWO_ADULTS_AND_ONE_OR_MORE_CHILDREN: - 2018-01-01: 2.85 + 2014-01-01: 2.85 CHILD_ONLY: - 2018-01-01: 0.412 + 2014-01-01: 0.412 diff --git a/policyengine_us/parameters/gov/aca/family_tier_ratings/vt.yaml b/policyengine_us/parameters/gov/aca/family_tier_ratings/vt.yaml index 03e89f5aec7..1238b1cf1e8 100644 --- a/policyengine_us/parameters/gov/aca/family_tier_ratings/vt.yaml +++ b/policyengine_us/parameters/gov/aca/family_tier_ratings/vt.yaml @@ -7,14 +7,16 @@ metadata: - slcsp_family_tier_category label: ACA premium family tier multipliers - VT reference: + - title: Vermont DFR Order Docket 13-002-I - 2014 tier structure + href: https://dfr.vermont.gov/sites/finreg/files/regbul/dfr-order-docket-13-002-i-vermont-health-benefits-exchange.pdf#page=2 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/state-rating ONE_ADULT: - 2018-01-01: 1.00 + 2014-01-01: 1.00 TWO_ADULTS: - 2018-01-01: 2.00 + 2014-01-01: 2.00 ONE_ADULT_AND_ONE_OR_MORE_CHILDREN: - 2018-01-01: 1.93 + 2014-01-01: 1.93 TWO_ADULTS_AND_ONE_OR_MORE_CHILDREN: - 2018-01-01: 2.81 + 2014-01-01: 2.81 diff --git a/policyengine_us/parameters/gov/aca/family_tier_states.yaml b/policyengine_us/parameters/gov/aca/family_tier_states.yaml index d0a70b48e51..194a32971bb 100644 --- a/policyengine_us/parameters/gov/aca/family_tier_states.yaml +++ b/policyengine_us/parameters/gov/aca/family_tier_states.yaml @@ -7,108 +7,112 @@ metadata: label: Family tier rating states unit: bool reference: + - title: Vermont DFR Order Docket 13-002-I - 2014 tier structure + href: https://dfr.vermont.gov/sites/finreg/files/regbul/dfr-order-docket-13-002-i-vermont-health-benefits-exchange.pdf#page=2 + - title: New York DFS 2017 individual rate filing - Exhibit 25 Rating Tiers + href: https://myportal.dfs.ny.gov/documents/538523/10367891/Aetna%2BLife_IND_OFFX_AETN-130549431_Application.pdf/cb70f6f0-e73e-4d0a-a946-f5259ec21b55#page=77 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/state-rating AL: - 2018-01-01: false + 2014-01-01: false AK: - 2018-01-01: false + 2014-01-01: false AZ: - 2018-01-01: false + 2014-01-01: false AR: - 2018-01-01: false + 2014-01-01: false CA: - 2018-01-01: false + 2014-01-01: false CO: - 2018-01-01: false + 2014-01-01: false CT: - 2018-01-01: false + 2014-01-01: false DE: - 2018-01-01: false + 2014-01-01: false DC: - 2018-01-01: false + 2014-01-01: false FL: - 2018-01-01: false + 2014-01-01: false GA: - 2018-01-01: false + 2014-01-01: false HI: - 2018-01-01: false + 2014-01-01: false ID: - 2018-01-01: false + 2014-01-01: false IL: - 2018-01-01: false + 2014-01-01: false IN: - 2018-01-01: false + 2014-01-01: false IA: - 2018-01-01: false + 2014-01-01: false KS: - 2018-01-01: false + 2014-01-01: false KY: - 2018-01-01: false + 2014-01-01: false LA: - 2018-01-01: false + 2014-01-01: false ME: - 2018-01-01: false + 2014-01-01: false MD: - 2018-01-01: false + 2014-01-01: false MA: - 2018-01-01: false + 2014-01-01: false MI: - 2018-01-01: false + 2014-01-01: false MN: - 2018-01-01: false + 2014-01-01: false MS: - 2018-01-01: false + 2014-01-01: false MO: - 2018-01-01: false + 2014-01-01: false MT: - 2018-01-01: false + 2014-01-01: false NE: - 2018-01-01: false + 2014-01-01: false NV: - 2018-01-01: false + 2014-01-01: false NH: - 2018-01-01: false + 2014-01-01: false NJ: - 2018-01-01: false + 2014-01-01: false NM: - 2018-01-01: false + 2014-01-01: false NY: - 2018-01-01: true + 2014-01-01: true NC: - 2018-01-01: false + 2014-01-01: false ND: - 2018-01-01: false + 2014-01-01: false OH: - 2018-01-01: false + 2014-01-01: false OK: - 2018-01-01: false + 2014-01-01: false OR: - 2018-01-01: false + 2014-01-01: false PA: - 2018-01-01: false + 2014-01-01: false RI: - 2018-01-01: false + 2014-01-01: false SC: - 2018-01-01: false + 2014-01-01: false SD: - 2018-01-01: false + 2014-01-01: false TN: - 2018-01-01: false + 2014-01-01: false TX: - 2018-01-01: false + 2014-01-01: false UT: - 2018-01-01: false + 2014-01-01: false VT: - 2018-01-01: true + 2014-01-01: true VA: - 2018-01-01: false + 2014-01-01: false WA: - 2018-01-01: false + 2014-01-01: false WV: - 2018-01-01: false + 2014-01-01: false WI: - 2018-01-01: false + 2014-01-01: false WY: - 2018-01-01: false + 2014-01-01: false diff --git a/policyengine_us/parameters/gov/aca/required_contribution_percentage/final.yaml b/policyengine_us/parameters/gov/aca/required_contribution_percentage/final.yaml index 59f07007aa8..cab7adfe601 100644 --- a/policyengine_us/parameters/gov/aca/required_contribution_percentage/final.yaml +++ b/policyengine_us/parameters/gov/aca/required_contribution_percentage/final.yaml @@ -4,6 +4,14 @@ metadata: period: year label: ACA contribution percentage - final rate per bracket reference: + - title: 26 U.S.C. 36B(b)(3)(A) - Original 2014 applicable percentages + href: https://www.govinfo.gov/content/pkg/USCODE-2014-title26/pdf/USCODE-2014-title26-subtitleA-chap1-subchapA-partIV-subpartC-sec36B.pdf#page=1 + - title: IRS Revenue Procedure 2014-37 section 5.01 - Applicable percentages for 2015 + href: https://www.irs.gov/pub/irs-irbs/irb14-33.pdf#page=38 + - title: IRS Revenue Procedure 2014-62 section 2.01 - Applicable percentages for 2016 + href: https://www.irs.gov/pub/irs-drop/rp-14-62.pdf#page=2 + - title: IRS Revenue Procedure 2016-24 section 2.01 - Applicable percentages for 2017 + href: https://www.irs.gov/pub/irs-drop/rp-16-24.pdf#page=2 - title: 26 U.S. Code § 36B(b)(3)(A) - Refundable credit for coverage under a qualified health plan href: https://www.law.cornell.edu/uscode/text/26/36B#b_3_A - title: IRS Revenue Procedure 2017-36 - Applicable percentage table for 2018 @@ -17,14 +25,34 @@ metadata: - title: IRS Revenue Procedure 2026-26 - Applicable percentage table for 2027 href: https://www.irs.gov/pub/irs-drop/rp-26-26.pdf#page=3 values: - # Original ACA: 6 brackets + 2014-01-01: + - 0.02 + - 0.04 + - 0.063 + - 0.0805 + - 0.095 + - 0.095 2015-01-01: - - 0.02 # 0-133%: flat 2% - - 0.04 # 133-150% - - 0.063 # 150-200% - - 0.0805 # 200-250% - - 0.095 # 250-300% - - 0.095 # 300-400%: flat 9.5% + - 0.0201 + - 0.0402 + - 0.0634 + - 0.081 + - 0.0956 + - 0.0956 + 2016-01-01: + - 0.0203 + - 0.0407 + - 0.0641 + - 0.0818 + - 0.0966 + - 0.0966 + 2017-01-01: + - 0.0204 + - 0.0408 + - 0.0643 + - 0.0821 + - 0.0969 + - 0.0969 2018-01-01: - 0.0201 - 0.0403 diff --git a/policyengine_us/parameters/gov/aca/required_contribution_percentage/initial.yaml b/policyengine_us/parameters/gov/aca/required_contribution_percentage/initial.yaml index ce3460458f4..64358314792 100644 --- a/policyengine_us/parameters/gov/aca/required_contribution_percentage/initial.yaml +++ b/policyengine_us/parameters/gov/aca/required_contribution_percentage/initial.yaml @@ -4,6 +4,14 @@ metadata: period: year label: ACA contribution percentage - initial rate per bracket reference: + - title: 26 U.S.C. 36B(b)(3)(A) - Original 2014 applicable percentages + href: https://www.govinfo.gov/content/pkg/USCODE-2014-title26/pdf/USCODE-2014-title26-subtitleA-chap1-subchapA-partIV-subpartC-sec36B.pdf#page=1 + - title: IRS Revenue Procedure 2014-37 section 5.01 - Applicable percentages for 2015 + href: https://www.irs.gov/pub/irs-irbs/irb14-33.pdf#page=38 + - title: IRS Revenue Procedure 2014-62 section 2.01 - Applicable percentages for 2016 + href: https://www.irs.gov/pub/irs-drop/rp-14-62.pdf#page=2 + - title: IRS Revenue Procedure 2016-24 section 2.01 - Applicable percentages for 2017 + href: https://www.irs.gov/pub/irs-drop/rp-16-24.pdf#page=2 - title: 26 U.S. Code § 36B(b)(3)(A) - Refundable credit for coverage under a qualified health plan href: https://www.law.cornell.edu/uscode/text/26/36B#b_3_A - title: IRS Revenue Procedure 2017-36 - Applicable percentage table for 2018 @@ -17,14 +25,34 @@ metadata: - title: IRS Revenue Procedure 2026-26 - Applicable percentage table for 2027 href: https://www.irs.gov/pub/irs-drop/rp-26-26.pdf#page=3 values: - # Original ACA: 6 brackets + 2014-01-01: + - 0.02 + - 0.03 + - 0.04 + - 0.063 + - 0.0805 + - 0.095 2015-01-01: - - 0.02 # 0-133%: flat 2% - - 0.03 # 133-150% - - 0.04 # 150-200% - - 0.063 # 200-250% - - 0.0805 # 250-300% - - 0.095 # 300-400%: flat 9.5% + - 0.0201 + - 0.0302 + - 0.0402 + - 0.0634 + - 0.081 + - 0.0956 + 2016-01-01: + - 0.0203 + - 0.0305 + - 0.0407 + - 0.0641 + - 0.0818 + - 0.0966 + 2017-01-01: + - 0.0204 + - 0.0306 + - 0.0408 + - 0.0643 + - 0.0821 + - 0.0969 2018-01-01: - 0.0201 - 0.0302 diff --git a/policyengine_us/parameters/gov/aca/required_contribution_percentage/threshold.yaml b/policyengine_us/parameters/gov/aca/required_contribution_percentage/threshold.yaml index 0aa76208635..92da0c51525 100644 --- a/policyengine_us/parameters/gov/aca/required_contribution_percentage/threshold.yaml +++ b/policyengine_us/parameters/gov/aca/required_contribution_percentage/threshold.yaml @@ -10,7 +10,7 @@ metadata: - title: IRS Revenue Procedure 2026-26 - Applicable percentage table for 2027 href: https://www.irs.gov/pub/irs-drop/rp-26-26.pdf#page=3 values: - 2015-01-01: + 2014-01-01: - 0 - 1.33 - 1.50 diff --git a/policyengine_us/parameters/gov/hhs/fpg.yaml b/policyengine_us/parameters/gov/hhs/fpg.yaml index e2953113a7a..203b9325c93 100644 --- a/policyengine_us/parameters/gov/hhs/fpg.yaml +++ b/policyengine_us/parameters/gov/hhs/fpg.yaml @@ -3,6 +3,8 @@ first_person: CONTIGUOUS_US: 1992-01-01: 6_810 2011-01-01: 10_890 + 2013-01-01: 11_490 + 2014-01-01: 11_670 2015-01-01: 11_770 2016-01-01: 11_880 2017-01-01: 12_060 @@ -18,6 +20,8 @@ first_person: AK: 1992-01-01: 8_500 2011-01-01: 13_600 + 2013-01-01: 14_350 + 2014-01-01: 14_580 2015-01-01: 14_720 2016-01-01: 14_840 2017-01-01: 15_060 @@ -33,6 +37,8 @@ first_person: HI: 1992-01-01: 7_830 2011-01-01: 12_540 + 2013-01-01: 13_230 + 2014-01-01: 13_420 2015-01-01: 13_550 2016-01-01: 13_670 2017-01-01: 13_860 @@ -61,6 +67,8 @@ additional_person: CONTIGUOUS_US: 1992-01-01: 2_380 2011-01-01: 3_820 + 2013-01-01: 4_020 + 2014-01-01: 4_060 2015-01-01: 4_160 2016-01-01: 4_160 2017-01-01: 4_180 @@ -76,6 +84,8 @@ additional_person: AK: 1992-01-01: 2_980 2011-01-01: 4_780 + 2013-01-01: 5_030 + 2014-01-01: 5_080 2015-01-01: 5_200 2016-01-01: 5_200 2017-01-01: 5_230 @@ -91,6 +101,8 @@ additional_person: HI: 1992-01-01: 2_740 2011-01-01: 4_390 + 2013-01-01: 4_620 + 2014-01-01: 4_670 2015-01-01: 4_780 2016-01-01: 4_780 2017-01-01: 4_810 @@ -114,6 +126,10 @@ additional_person: metadata: unit: currency-USD reference: + - title: HHS 2013 Annual Update of the Poverty Guidelines + href: https://www.govinfo.gov/content/pkg/FR-2013-01-24/pdf/2013-01422.pdf#page=2 + - title: "HHS 2014 Annual Update of the Poverty Guidelines #page 1-2" + href: https://www.govinfo.gov/content/pkg/FR-2014-01-22/pdf/2014-01303.pdf#page=1 - title: 2026 Poverty Guidelines href: https://aspe.hhs.gov/topics/poverty-economic-mobility/poverty-guidelines - title: 2015 Poverty Guidelines diff --git a/policyengine_us/programs.yaml b/policyengine_us/programs.yaml index 0f74596fd68..65273bf0566 100644 --- a/policyengine_us/programs.yaml +++ b/policyengine_us/programs.yaml @@ -429,7 +429,8 @@ programs: has_state_variation: true variable: aca_ptc parameter_prefix: gov.aca - verified_start_year: 2024 + verified_start_year: 2014 + notes: 2014 PTC calculations use supplied MAGI and coverage eligibility; 2014-2017 benchmark premiums use estimates from 2018 rating-area premiums. - id: tanf name: TANF diff --git a/policyengine_us/reforms/aca/aca_ptc_minimum_premium.py b/policyengine_us/reforms/aca/aca_ptc_minimum_premium.py index 81432a0a8eb..f52cab04ed4 100644 --- a/policyengine_us/reforms/aca/aca_ptc_minimum_premium.py +++ b/policyengine_us/reforms/aca/aca_ptc_minimum_premium.py @@ -43,6 +43,24 @@ class aca_ptc_before_filing_gate(Variable): def formula(tax_unit, period, parameters): return 0 + def formula_2014(tax_unit, period, parameters): + plan_cost = tax_unit("slcsp", period) + income = max_(0, tax_unit("aca_magi", period)) + applicable_figure = tax_unit("aca_required_contribution_percentage", period) + return max_(0, plan_cost - income * applicable_figure) + + def formula_2015(tax_unit, period, parameters): + plan_cost = tax_unit("slcsp", period) + income = max_(0, tax_unit("aca_magi", period)) + applicable_figure = tax_unit("aca_required_contribution_percentage", period) + credit = max_(0, plan_cost - income * applicable_figure) + enrolled_premium = max_( + plan_cost, + tax_unit("selected_marketplace_plan_premium_proxy", period), + ) + minimum = tax_unit("aca_ptc_minimum_premium", period) + return min_(credit, max_(0, enrolled_premium - minimum)) + def formula_2018(tax_unit, period, parameters): plan_cost = tax_unit("slcsp", period) income = tax_unit("aca_magi", period) diff --git a/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py b/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py index df356d4cd2a..492386f0c5c 100644 --- a/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py +++ b/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py @@ -6,7 +6,7 @@ final percentage (26 CFR 1.36B-3(g)(1)). The IRS indexes the table each year; Rev. Proc. 2026-26 sets it for 2027. Hypothesis draws incomes as fractions of the poverty line from 0 to 400 percent. Each drawn example is one simulation, -calculated for every year from 2018 through 2027 against that year's table. +calculated for every year from 2014 through 2027 against that year's table. For every year: 1. At each tier's lower edge the percentage equals the tier's initial @@ -23,16 +23,21 @@ edges; rounding adds steps of 0.01 percentage point. 4. The required contribution (household income times the percentage) never decreases as income rises, so for a fixed benchmark premium the credit never - rises with income up to 400 percent (checked for 2026 and 2027, from income - in dollars through the poverty-line fraction). + rises with income up to 400 percent (checked for 2014–2017, 2026 and 2027, from + income in dollars through the poverty-line fraction). +5. In 2014–2017 the credit stays between zero and the benchmark premium, + including supplied negative MAGI. Later years retain that bound for + nonnegative MAGI and preserve their existing negative-input arithmetic. +6. From 2018 through 2027, percentages and credits match the tables and + calculation used before historical coverage. -Why Python: the YAML cases pin the 2027 table at chosen points; this checks +Why Python: the YAML cases pin annual tables at chosen points; this checks every year's table at its edges and at drawn incomes, so a mistyped edge, an interpolation that runs past a tier's final percentage, or a new table row -entered in the wrong order fails wherever it falls. Cost, measured -locally (macOS, shared host): about 6 s of test calls, 12 s in pytest and 36 s -wall time including the model import, peak memory footprint 1.7 GB. It runs in -the `core` group of the rest Python tests. +entered in the wrong order fails wherever it falls. The compatibility check +compares against a frozen copy of the existing tables and detects historical +entries leaking into later years. +These tests run in the `core` group of the rest Python tests. """ import numpy as np @@ -41,8 +46,8 @@ from policyengine_us import Simulation -YEARS = tuple(range(2018, 2028)) -CONTRIBUTION_YEARS = (2026, 2027) +YEARS = tuple(range(2014, 2028)) +CONTRIBUTION_YEARS = (2014, 2015, 2016, 2017, 2026, 2027) # The model holds incomes and percentages in float32 (about seven significant # digits), so edges are approached from 1e-5 away and percentages compared to # within 1e-6. @@ -160,8 +165,8 @@ def test_applicable_percentage_table(points): ) @given( # Fixed incomes in four tiers, so every example compares distinct incomes. - st.lists(st.integers(0, 70_000), max_size=60).map( - lambda drawn: sorted([10_000, 25_000, 40_000, 60_000, *drawn]) + st.lists(st.integers(-20_000, 70_000), max_size=60).map( + lambda drawn: sorted([-1_000, 0, 10_000, 25_000, 40_000, 60_000, *drawn]) ), st.integers(1_000, 20_000), ) @@ -180,8 +185,103 @@ def test_required_contribution_rises_with_income(incomes, slcsp): simulation.calculate("aca_required_contribution_percentage", year) ) credit = np.asarray(simulation.calculate("aca_ptc_before_filing_gate", year)) + # Property 5 also covers the zero floor outside the income range. + assert (credit >= 0).all(), year + bounded = np.ones(len(income), dtype=bool) if year < 2018 else income >= 0 + assert (credit[bounded] <= slcsp + 1e-6).all(), year within = fraction <= 4 - contribution = (income * rate)[within] + contribution_income = np.maximum(income, 0) if year < 2018 else income + contribution = (contribution_income * rate)[within] # Property 4. assert (np.diff(contribution) >= -1e-6).all(), year assert (np.diff(credit[within]) <= 1e-6).all(), year + + +# Freeze the tables used before extending historical coverage. Repeated knots +# let numpy.interp retain the jump at 133 percent without sharing the model's +# bracket-selection implementation. +POST_2017_TABLES = { + 2018: ( + [0.0201, 0.0302, 0.0403, 0.0634, 0.081, 0.0956], + [0.0201, 0.0403, 0.0634, 0.081, 0.0956, 0.0956], + ), + 2019: ( + [0.0208, 0.0311, 0.0415, 0.0654, 0.0836, 0.0986], + [0.0208, 0.0415, 0.0654, 0.0836, 0.0986, 0.0986], + ), + 2020: ( + [0.0206, 0.0309, 0.0412, 0.0649, 0.0829, 0.0978], + [0.0206, 0.0412, 0.0649, 0.0829, 0.0978, 0.0978], + ), + **{ + year: ([0, 0, 0.02, 0.04, 0.06], [0, 0.02, 0.04, 0.06, 0.085]) + for year in range(2021, 2026) + }, + 2026: ( + [0.021, 0.0314, 0.0419, 0.066, 0.0844, 0.0996], + [0.021, 0.0419, 0.066, 0.0844, 0.0996, 0.0996], + ), + 2027: ( + [0.0215, 0.0323, 0.043, 0.0678, 0.0866, 0.1022], + [0.0215, 0.043, 0.0678, 0.0866, 0.1022, 0.1022], + ), +} + + +@settings( + max_examples=4, + deadline=None, + derandomize=True, + suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large], +) +@given( + st.lists( + st.tuples( + st.floats(0, 6, allow_nan=False, allow_infinity=False), + st.integers(-20_000, 120_000), + st.integers(0, 30_000), + ), + min_size=1, + max_size=24, + ) +) +def test_post_2017_credit_matches_existing_rules(drawn): + rows = [(edge, 30_000, 12_000) for edge in [*KNOTS, 4.01, 5.0]] + rows += [(0, -1_000, 12_000), *drawn] + simulation = build( + [ + { + "aca_magi_fraction": fraction, + "aca_magi": income, + "slcsp": premium, + "tax_unit_is_filer": True, + } + for fraction, income, premium in rows + ], + tuple(POST_2017_TABLES), + ) + fractions, incomes, premiums = np.array(rows, dtype=np.float32).T + for year, (initial, final) in POST_2017_TABLES.items(): + thresholds = [0, 1.5, 2, 2.5, 3, 4] + if not 2021 <= year <= 2025: + thresholds.insert(1, 1.33) + knots = np.repeat(thresholds, 2)[1:-1] + expected_rate = np.interp( + fractions, knots, np.column_stack((initial, final)).ravel() + ) + if not 2021 <= year <= 2025: + expected_rate = np.where(fractions > 4, 0, expected_rate) + rate = simulation.calculate("aca_required_contribution_percentage", year) + np.testing.assert_allclose( + rate, expected_rate, atol=TOLERANCE, err_msg=str(year) + ) + expected_credit = np.maximum(0, premiums - incomes * expected_rate) + for variable in ("aca_ptc_before_filing_gate", "aca_ptc"): + credit = simulation.calculate(variable, year) + np.testing.assert_allclose( + credit, + expected_credit, + rtol=1e-6, + atol=0.02, + err_msg=f"{year}: {variable}", + ) diff --git a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml index ea6ec85cef9..0b5d4292e34 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml @@ -10,9 +10,9 @@ output: aca_ptc: 200 # 1200 - 0.04 * 25000 = 200 -- name: ACA PTC remains zero before available rating-area premium data +- name: ACA PTC remains zero before coverage began in 2014 absolute_error_margin: 0.01 - period: 2017 + period: 2013 input: is_aca_ptc_eligible: true slcsp: 1_200 @@ -203,9 +203,9 @@ is_aca_ptc_eligible: [true] aca_ptc: 200 -- name: ACA PTC remains zero in 2017 before available rating-area premium data +- name: ACA PTC remains zero in 2013 before coverage began absolute_error_margin: 0.01 - period: 2017 + period: 2013 input: is_aca_ptc_eligible: true slcsp: 1_200 @@ -421,3 +421,334 @@ aca_magi_fraction: 2.50 # 54_100 / 21_640 (2026 guideline, two people) aca_required_contribution_percentage: 0.0866 aca_ptc: 10_314.94 # 15_000 - 0.0866 * 54_100 = 15_000 - 4_685.06 + +- name: ACA PTC uses the 2014 applicable percentage at 250 percent FPL. + absolute_error_margin: 0.01 + period: 2014 + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: 30_000 + aca_magi_fraction: 2.50 + tax_unit_is_filer: true + output: + aca_required_contribution_percentage: 0.0805 + aca_ptc_before_filing_gate: 9585.0000 # 12,000 - 30,000 * 0.0805 = 9585.0000. + aca_ptc: 9585.0000 + +- name: ACA PTC uses the 2015 applicable percentage at 250 percent FPL. + absolute_error_margin: 0.01 + period: 2015 + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: 30_000 + aca_magi_fraction: 2.50 + tax_unit_is_filer: true + output: + aca_required_contribution_percentage: 0.081 + aca_ptc_before_filing_gate: 9570.000 # 12,000 - 30,000 * 0.081 = 9570.000. + aca_ptc: 9570.000 + +- name: ACA PTC uses the 2016 applicable percentage at 250 percent FPL. + absolute_error_margin: 0.01 + period: 2016 + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: 30_000 + aca_magi_fraction: 2.50 + tax_unit_is_filer: true + output: + aca_required_contribution_percentage: 0.0818 + aca_ptc_before_filing_gate: 9546.0000 # 12,000 - 30,000 * 0.0818 = 9546.0000. + aca_ptc: 9546.0000 + +- name: ACA PTC uses the 2017 applicable percentage at 250 percent FPL. + absolute_error_margin: 0.01 + period: 2017 + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: 30_000 + aca_magi_fraction: 2.50 + tax_unit_is_filer: true + output: + aca_required_contribution_percentage: 0.0821 + aca_ptc_before_filing_gate: 9537.0000 # 12,000 - 30,000 * 0.0821 = 9537.0000. + aca_ptc: 9537.0000 + +- name: ACA PTC interpolates the 2017 percentage at 140 percent FPL. + # Matches the ACABefore2018 reference implementation's 140 percent case. + # 0.0306 + (1.40 - 1.33) / (1.50 - 1.33) * (0.0408 - 0.0306) = 0.0348. + absolute_error_margin: 0.01 + period: 2017 + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: 16_800 + aca_magi_fraction: 1.40 + tax_unit_is_filer: true + output: + aca_required_contribution_percentage: 0.0348 + aca_ptc_before_filing_gate: 11_415.36 # 12,000 - 16,800 * 0.0348. + aca_ptc: 11_415.36 + +- name: ACA PTC requires filing in 2017. + absolute_error_margin: 0.01 + period: 2017 + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: 30_000 + aca_magi_fraction: 2.50 + tax_unit_is_filer: false + takes_up_aca_if_eligible: false + output: + aca_ptc_before_filing_gate: 9_537 # 12,000 - 30,000 * 0.0821. + aca_ptc: 0 + +- name: ACA PTC floors at zero when the 2016 contribution exceeds the premium. + absolute_error_margin: 0.01 + period: 2016 + input: + is_aca_ptc_eligible: true + slcsp: 2_000 + aca_magi: 30_000 + aca_magi_fraction: 2.50 + tax_unit_is_filer: true + output: + aca_ptc_before_filing_gate: 0 # 2,000 - 30,000 * 0.0818 = -454. + aca_ptc: 0 + +- name: An Alaska adult receives the 2014 credit using the prior guideline and estimated benchmark. + period: 2014 + absolute_error_margin: 0.02 + input: + people: + adult: + age: 40 + pays_aca_premium: true + tax_units: + unit: + members: [adult] + aca_magi: 35875.0 + aca_ptc_below_fpl_immigration_exception: false + filing_status: SINGLE + tax_unit_is_filer: true + households: + household: + members: [adult] + state_code: + 2013: AK + 2014: AK + slcsp_rating_area: 1 + output: + # MAGI = 2.5 * 14350; benchmark = 424 * 273 / 481 * 1.6706 * 12. + # Credit = 4824.331589 - 35875.0 * 0.0805 = 1936.394089. + aca_magi_fraction: 2.5 + slcsp: 4824.331589 + is_aca_ptc_eligible: true + aca_ptc: 1936.394089 + +- name: An Alaska adult receives the 2015 credit using the prior guideline and estimated benchmark. + period: 2015 + absolute_error_margin: 0.02 + input: + people: + adult: + age: 40 + pays_aca_premium: true + tax_units: + unit: + members: [adult] + aca_magi: 36450.0 + aca_ptc_below_fpl_immigration_exception: false + filing_status: SINGLE + tax_unit_is_filer: true + households: + household: + members: [adult] + state_code: + 2014: AK + 2015: AK + slcsp_rating_area: 1 + output: + # MAGI = 2.5 * 14580; benchmark = 424 * 276 / 481 * 1.6706 * 12. + # Credit = 4877.346222 - 36450.0 * 0.081 = 1924.896222. + aca_magi_fraction: 2.5 + slcsp: 4877.346222 + is_aca_ptc_eligible: true + aca_ptc: 1924.896222 + +- name: An Alaska adult receives the 2016 credit using the prior guideline and estimated benchmark. + period: 2016 + absolute_error_margin: 0.02 + input: + people: + adult: + age: 40 + pays_aca_premium: true + tax_units: + unit: + members: [adult] + aca_magi: 36800.0 + aca_ptc_below_fpl_immigration_exception: false + filing_status: SINGLE + tax_unit_is_filer: true + households: + household: + members: [adult] + state_code: + 2015: AK + 2016: AK + slcsp_rating_area: 1 + output: + # MAGI = 2.5 * 14720; benchmark = 424 * 299 / 481 * 1.6706 * 12. + # Credit = 5283.791741 - 36800.0 * 0.0818 = 2273.551741. + aca_magi_fraction: 2.5 + slcsp: 5283.791741 + is_aca_ptc_eligible: true + aca_ptc: 2273.551741 + +- name: An Alaska adult receives the 2017 credit using the prior guideline and estimated benchmark. + period: 2017 + absolute_error_margin: 0.02 + input: + people: + adult: + age: 40 + pays_aca_premium: true + tax_units: + unit: + members: [adult] + aca_magi: 37100.0 + aca_ptc_below_fpl_immigration_exception: false + filing_status: SINGLE + tax_unit_is_filer: true + households: + household: + members: [adult] + state_code: + 2016: AK + 2017: AK + slcsp_rating_area: 1 + output: + # MAGI = 2.5 * 14840; benchmark = 424 * 359 / 481 * 1.6706 * 12. + # Credit = 6344.084398 - 37100.0 * 0.0821 = 3298.174398. + aca_magi_fraction: 2.5 + slcsp: 6344.084398 + is_aca_ptc_eligible: true + aca_ptc: 3298.174398 + +- name: Income above 400 percent receives no credit in 2014. + period: 2014 + input: + pays_aca_premium: true + aca_magi_fraction: 4.01 + aca_magi: 60_000 + aca_ptc_below_fpl_immigration_exception: false + filing_status: SINGLE + tax_unit_is_filer: true + slcsp: 12_000 + output: + is_aca_ptc_eligible: false + aca_ptc: 0 + +- name: Income above 400 percent receives no credit in 2015. + period: 2015 + input: + pays_aca_premium: true + aca_magi_fraction: 4.01 + aca_magi: 60_000 + aca_ptc_below_fpl_immigration_exception: false + filing_status: SINGLE + tax_unit_is_filer: true + slcsp: 12_000 + output: + is_aca_ptc_eligible: false + aca_ptc: 0 + +- name: Income above 400 percent receives no credit in 2016. + period: 2016 + input: + pays_aca_premium: true + aca_magi_fraction: 4.01 + aca_magi: 60_000 + aca_ptc_below_fpl_immigration_exception: false + filing_status: SINGLE + tax_unit_is_filer: true + slcsp: 12_000 + output: + is_aca_ptc_eligible: false + aca_ptc: 0 + +- name: Income above 400 percent receives no credit in 2017. + period: 2017 + input: + pays_aca_premium: true + aca_magi_fraction: 4.01 + aca_magi: 60_000 + aca_ptc_below_fpl_immigration_exception: false + filing_status: SINGLE + tax_unit_is_filer: true + slcsp: 12_000 + output: + is_aca_ptc_eligible: false + aca_ptc: 0 + +- name: The 2014 credit cannot exceed the benchmark when supplied MAGI is negative + period: 2014 + absolute_error_margin: 0.01 + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: -1_000 + aca_magi_fraction: 0 + tax_unit_is_filer: true + output: + # Form 8962 line 3 uses zero when the combined MAGI is negative. + aca_ptc_before_filing_gate: 12_000 + aca_ptc: 12_000 + +- name: The 2015 credit cannot exceed the benchmark when supplied MAGI is negative + period: 2015 + absolute_error_margin: 0.01 + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: -1_000 + aca_magi_fraction: 0 + tax_unit_is_filer: true + output: + # Form 8962 line 3 uses zero when the combined MAGI is negative. + aca_ptc_before_filing_gate: 12_000 + aca_ptc: 12_000 + +- name: The 2016 credit cannot exceed the benchmark when supplied MAGI is negative + period: 2016 + absolute_error_margin: 0.01 + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: -1_000 + aca_magi_fraction: 0 + tax_unit_is_filer: true + output: + # Form 8962 line 3 uses zero when the combined MAGI is negative. + aca_ptc_before_filing_gate: 12_000 + aca_ptc: 12_000 + +- name: The 2017 credit cannot exceed the benchmark when supplied MAGI is negative + period: 2017 + absolute_error_margin: 0.01 + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: -1_000 + aca_magi_fraction: 0 + tax_unit_is_filer: true + output: + # Form 8962 line 3 uses zero when the combined MAGI is negative. + aca_ptc_before_filing_gate: 12_000 + aca_ptc: 12_000 diff --git a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_required_contribution_percentage.yaml b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_required_contribution_percentage.yaml index 0516ccdc7c5..d1eede111fe 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_required_contribution_percentage.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_required_contribution_percentage.yaml @@ -327,3 +327,99 @@ aca_magi_fraction: 4.01 output: aca_required_contribution_percentage: 0 + +# Each row approaches a table boundary from one whole percentage point below +# and above. Within each tier: initial + (fraction - lower) / (upper - lower) +# * (final - initial). Above 400 percent, the applicable percentage is zero. + +- name: ACA contribution percentages follow the 2014 table on both sides of every boundary. + # 26 U.S.C. 36B(b)(3)(A)(i). + period: 2014 + absolute_error_margin: 0.000001 + input: + aca_magi_fraction: [ + 1.32, 1.33, 1.34, # 133 percent FPL. + 1.49, 1.50, 1.51, # 150 percent FPL. + 1.99, 2.00, 2.01, # 200 percent FPL. + 2.49, 2.50, 2.51, # 250 percent FPL. + 2.99, 3.00, 3.01, # 300 percent FPL. + 3.99, 4.00, 4.01, # 400 percent FPL. + ] + output: + aca_required_contribution_percentage: [ + 0.02, 0.03, 0.0305882353, + 0.0394117647, 0.04, 0.04046, + 0.06254, 0.063, 0.06335, + 0.08015, 0.0805, 0.08079, + 0.09471, 0.095, 0.095, + 0.095, 0.095, 0, + ] + +- name: ACA contribution percentages follow the 2015 table on both sides of every boundary. + # Rev. Proc. 2014-37 section 5.01. + period: 2015 + absolute_error_margin: 0.000001 + input: + aca_magi_fraction: [ + 1.32, 1.33, 1.34, # 133 percent FPL. + 1.49, 1.50, 1.51, # 150 percent FPL. + 1.99, 2.00, 2.01, # 200 percent FPL. + 2.49, 2.50, 2.51, # 250 percent FPL. + 2.99, 3.00, 3.01, # 300 percent FPL. + 3.99, 4.00, 4.01, # 400 percent FPL. + ] + output: + aca_required_contribution_percentage: [ + 0.0201, 0.0302, 0.0307882353, + 0.0396117647, 0.0402, 0.040664, + 0.062936, 0.0634, 0.063752, + 0.080648, 0.081, 0.081292, + 0.095308, 0.0956, 0.0956, + 0.0956, 0.0956, 0, + ] + +- name: ACA contribution percentages follow the 2016 table on both sides of every boundary. + # Rev. Proc. 2014-62 section 2.01. + period: 2016 + absolute_error_margin: 0.000001 + input: + aca_magi_fraction: [ + 1.32, 1.33, 1.34, # 133 percent FPL. + 1.49, 1.50, 1.51, # 150 percent FPL. + 1.99, 2.00, 2.01, # 200 percent FPL. + 2.49, 2.50, 2.51, # 250 percent FPL. + 2.99, 3.00, 3.01, # 300 percent FPL. + 3.99, 4.00, 4.01, # 400 percent FPL. + ] + output: + aca_required_contribution_percentage: [ + 0.0203, 0.0305, 0.0311, + 0.0401, 0.0407, 0.041168, + 0.063632, 0.0641, 0.064454, + 0.081446, 0.0818, 0.082096, + 0.096304, 0.0966, 0.0966, + 0.0966, 0.0966, 0, + ] + +- name: ACA contribution percentages follow the 2017 table on both sides of every boundary. + # Rev. Proc. 2016-24 section 2.01. + period: 2017 + absolute_error_margin: 0.000001 + input: + aca_magi_fraction: [ + 1.32, 1.33, 1.34, # 133 percent FPL. + 1.49, 1.50, 1.51, # 150 percent FPL. + 1.99, 2.00, 2.01, # 200 percent FPL. + 2.49, 2.50, 2.51, # 250 percent FPL. + 2.99, 3.00, 3.01, # 300 percent FPL. + 3.99, 4.00, 4.01, # 400 percent FPL. + ] + output: + aca_required_contribution_percentage: [ + 0.0204, 0.0306, 0.0312, + 0.0402, 0.0408, 0.04127, + 0.06383, 0.0643, 0.064656, + 0.081744, 0.0821, 0.082396, + 0.096604, 0.0969, 0.0969, + 0.0969, 0.0969, 0, + ] diff --git a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/family_tier_applies.yaml b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/family_tier_applies.yaml index 18669857d47..90611127ae3 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/family_tier_applies.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/family_tier_applies.yaml @@ -13,3 +13,17 @@ state_fips: 6 output: slcsp_family_tier_applies: FALSE + +- name: Marketplace premiums distinguish family tiers from age curves in 2014. + period: 2014-01 + input: + state_code: [TX, NJ, NY, VT] + output: + slcsp_family_tier_applies: [false, false, true, true] + +- name: Marketplace premiums retain their family tier states in 2018. + period: 2018-01 + input: + state_code: [TX, NJ, NY, VT] + output: + slcsp_family_tier_applies: [false, false, true, true] diff --git a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/family_tier_multiplier.yaml b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/family_tier_multiplier.yaml index e1e0286643a..3e39bd7388f 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/family_tier_multiplier.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/family_tier_multiplier.yaml @@ -184,3 +184,105 @@ state_fips: 50 output: slcsp_family_tier_multiplier: 2.81 + +- name: New York prices a parent and child in the first marketplace year. + period: 2014-01 + input: + people: + parent: + monthly_age: 40 + pays_aca_premium: true + child: + monthly_age: 10 + pays_aca_premium: true + tax_units: + tax_unit: + members: [parent, child] + slcsp_family_tier_category: ONE_ADULT_AND_ONE_OR_MORE_CHILDREN + slcsp_family_tier_applies: true + households: + household: + members: [parent, child] + state_code: NY + output: + # NY's 2014 tier factor equals 1.7 for one adult and children. + slcsp_family_tier_multiplier: 1.7 + +- name: Vermont prices parents and a child in the first marketplace year. + period: 2014-01 + input: + people: + parent: + monthly_age: 40 + pays_aca_premium: true + spouse: + monthly_age: 40 + pays_aca_premium: true + child: + monthly_age: 10 + pays_aca_premium: true + tax_units: + tax_unit: + members: [parent, spouse, child] + slcsp_family_tier_category: TWO_ADULTS_AND_ONE_OR_MORE_CHILDREN + slcsp_family_tier_applies: true + households: + household: + members: [parent, spouse, child] + state_code: VT + output: + # Vermont's March 2013 order sets the 2014 family factor at 2.81. + slcsp_family_tier_multiplier: 2.81 + +- name: New York retains its existing Age 29 adjustment from 2015. + period: 2015-01 + input: + people: + parent: + monthly_age: 50 + pays_aca_premium: true + is_aca_family_tier_dependent_child: false + is_aca_ny_age_29_dependent_child: false + child: + monthly_age: 26 + pays_aca_premium: true + is_aca_family_tier_dependent_child: true + is_aca_ny_age_29_dependent_child: true + tax_units: + tax_unit: + members: [parent, child] + slcsp_family_tier_category: ONE_ADULT_AND_ONE_OR_MORE_CHILDREN + slcsp_family_tier_applies: true + households: + household: + members: [parent, child] + state_code: NY + output: + # Preserve the existing calculation: 1.7 * 1.05 = 1.785. + slcsp_family_tier_multiplier: 1.785 + +- name: New York estimates the 2014 premium for an extended dependent with the ordinary child tier. + period: 2014-01 + input: + people: + parent: + monthly_age: 50 + pays_aca_premium: true + is_tax_unit_dependent: false + child: + monthly_age: 26 + pays_aca_premium: true + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [parent, child] + slcsp_family_tier_applies: true + households: + household: + members: [parent, child] + state_code: NY + output: + # Approximate the 2014 benchmark with the ordinary parent-and-child factor. + is_aca_family_tier_dependent_child: [false, true] + slcsp_family_tier_category: ONE_ADULT_AND_ONE_OR_MORE_CHILDREN + slcsp_family_tier_multiplier: 1.7 diff --git a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_0.yaml b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_0.yaml index 16e2fcfd4c8..63f544a4117 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_0.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_0.yaml @@ -216,3 +216,47 @@ slcsp_rating_area: 19 output: slcsp_age_0: 245 + +- name: Alaska rating area 1 scales the 2018 benchmark back to 2014. + period: 2014-01 + absolute_error_margin: 0.0001 + input: + state_code: AK + slcsp_rating_area: 1 + output: + slcsp_age_0: 240.64864865 # 424 * 273 / 481. + +- name: Alaska rating area 1 scales the 2018 benchmark back to 2015. + period: 2015-01 + absolute_error_margin: 0.0001 + input: + state_code: AK + slcsp_rating_area: 1 + output: + slcsp_age_0: 243.29313929 # 424 * 276 / 481. + +- name: Alaska rating area 1 scales the 2018 benchmark back to 2016. + period: 2016-01 + absolute_error_margin: 0.0001 + input: + state_code: AK + slcsp_rating_area: 1 + output: + slcsp_age_0: 263.56756757 # 424 * 299 / 481. + +- name: Alaska rating area 1 scales the 2018 benchmark back to 2017. + period: 2017-01 + absolute_error_margin: 0.0001 + input: + state_code: AK + slcsp_rating_area: 1 + output: + slcsp_age_0: 316.45738046 # 424 * 359 / 481. + +- name: An unknown rating area yields no benchmark in 2014. + period: 2014-01 + input: + state_code: AK + slcsp_rating_area: 0 + output: + slcsp_age_0: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml index 71b067b4491..12e3a86c58d 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml @@ -36,3 +36,71 @@ state_code: NY output: slcsp_age_curve_multiplier: 1 + +- name: Children share the federal age curve before 2018. + period: 2017-12 + absolute_error_margin: 0.000001 + input: + monthly_age: [0, 14, 15, 20, 21, 40, 64] + state_code: [TX, TX, TX, TX, TX, TX, TX] + output: + # CMS 2013 child ratio / the 2018 base ratio = 0.635 / 0.765. + # Adult multipliers retain the model's 2018 normalization. + slcsp_age_curve_multiplier: [0.8300653595, 0.8300653595, 0.8300653595, 0.8300653595, 1.3072, 1.6706, 3.9216] + +- name: Federal age curves support the first marketplace year. + period: 2014-01 + absolute_error_margin: 0.000001 + input: + monthly_age: [20, 21, 40] + state_code: [TX, TX, TX] + output: + # 0.635 / 0.765 = 0.8300653595 for every child under 21. + slcsp_age_curve_multiplier: [0.8300653595, 1.3072, 1.6706] + +- name: Children move to the revised federal age curve in 2018. + period: 2018-01 + input: + monthly_age: [0, 14, 15, 20, 21, 40, 64] + state_code: [TX, TX, TX, TX, TX, TX, TX] + output: + slcsp_age_curve_multiplier: [1, 1, 1.0889, 1.268, 1.3072, 1.6706, 3.9216] + +- name: New Jersey premiums follow its historical age curve. + period: 2017-12 + absolute_error_margin: 0.000001 + input: + monthly_age: [0, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65] + state_code: [NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ] + output: + # CMS NJ ratios * the model's age-40 multiplier / CMS NJ age-40 ratio. + # Children: 0.75 * 1.6706 / 1.393 = 0.8994615937. + # Ages 21-28: 1.25 * 1.6706 / 1.393 = 1.4991026561. + # Age 59+: 2.28 * 1.6706 / 1.393 = 2.7343632448. + slcsp_age_curve_multiplier: [0.8994615937, 0.8994615937, 1.4991026561, 1.4991026561, 1.4991026561, 1.4991026561, 1.4991026561, 1.4991026561, 1.4991026561, 1.4991026561, 1.5290847093, 1.5434760948, 1.5650631730, 1.5866502513, 1.5998423546, 1.6142337401, 1.6214294329, 1.6286251256, 1.6346215363, 1.6418172290, 1.6562086145, 1.6706000000, 1.6909877961, 1.7113755922, 1.7389590811, 1.7725389806, 1.8121152907, 1.8588872936, 1.9104564250, 1.9680219670, 2.0243882268, 2.0879501795, 2.1491135678, 2.2150740847, 2.2810346016, 2.3517922469, 2.4213506102, 2.4945068198, 2.5688623116, 2.6456163676, 2.7343632448, 2.7343632448, 2.7343632448, 2.7343632448, 2.7343632448, 2.7343632448, 2.7343632448] + +- name: New Jersey uses its historical curve in 2014. + period: 2014-01 + absolute_error_margin: 0.000001 + input: + monthly_age: [20, 21, 40] + state_code: [NJ, NJ, NJ] + output: + # CMS ratios [0.75, 1.25, 1.393] * 1.6706 / 1.393. + slcsp_age_curve_multiplier: [0.8994615937, 1.4991026561, 1.6706000000] + +- name: New Jersey moves to the federal age curve in 2018. + period: 2018-01 + input: + monthly_age: [0, 20, 21, 40, 64] + state_code: [NJ, NJ, NJ, NJ, NJ] + output: + slcsp_age_curve_multiplier: [1, 1.268, 1.3072, 1.6706, 3.9216] + +- name: State age curves retain their historical adult factors. + period: 2014-01 + input: + monthly_age: [40, 40, 40, 40, 40, 40, 40, 40, 40] + state_code: [AL, DC, MA, MN, MS, NY, OR, UT, VT] + output: + slcsp_age_curve_multiplier: [2.0126, 1.4908, 1.8549, 1.436, 2.0126, 1, 2.0126, 1.8651, 1] diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/tax_unit_fpg.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/tax_unit_fpg.yaml new file mode 100644 index 00000000000..7ec378f6565 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/hhs/tax_unit_fpg.yaml @@ -0,0 +1,107 @@ +- name: HHS 2013 guideline for 1 people in CONTIGUOUS_US + period: 2013 + input: + tax_unit_size: 1 + state_group_str: CONTIGUOUS_US + output: + # 11490 + 4020 * (1 - 1). + tax_unit_fpg: 11490 + +- name: HHS 2013 guideline for 2 people in CONTIGUOUS_US + period: 2013 + input: + tax_unit_size: 2 + state_group_str: CONTIGUOUS_US + output: + # 11490 + 4020 * (2 - 1). + tax_unit_fpg: 15510 + +- name: HHS 2013 guideline for 1 people in AK + period: 2013 + input: + tax_unit_size: 1 + state_group_str: AK + output: + # 14350 + 5030 * (1 - 1). + tax_unit_fpg: 14350 + +- name: HHS 2013 guideline for 2 people in AK + period: 2013 + input: + tax_unit_size: 2 + state_group_str: AK + output: + # 14350 + 5030 * (2 - 1). + tax_unit_fpg: 19380 + +- name: HHS 2013 guideline for 1 people in HI + period: 2013 + input: + tax_unit_size: 1 + state_group_str: HI + output: + # 13230 + 4620 * (1 - 1). + tax_unit_fpg: 13230 + +- name: HHS 2013 guideline for 2 people in HI + period: 2013 + input: + tax_unit_size: 2 + state_group_str: HI + output: + # 13230 + 4620 * (2 - 1). + tax_unit_fpg: 17850 + +- name: HHS 2014 guideline for 1 people in CONTIGUOUS_US + period: 2014 + input: + tax_unit_size: 1 + state_group_str: CONTIGUOUS_US + output: + # 11670 + 4060 * (1 - 1). + tax_unit_fpg: 11670 + +- name: HHS 2014 guideline for 2 people in CONTIGUOUS_US + period: 2014 + input: + tax_unit_size: 2 + state_group_str: CONTIGUOUS_US + output: + # 11670 + 4060 * (2 - 1). + tax_unit_fpg: 15730 + +- name: HHS 2014 guideline for 1 people in AK + period: 2014 + input: + tax_unit_size: 1 + state_group_str: AK + output: + # 14580 + 5080 * (1 - 1). + tax_unit_fpg: 14580 + +- name: HHS 2014 guideline for 2 people in AK + period: 2014 + input: + tax_unit_size: 2 + state_group_str: AK + output: + # 14580 + 5080 * (2 - 1). + tax_unit_fpg: 19660 + +- name: HHS 2014 guideline for 1 people in HI + period: 2014 + input: + tax_unit_size: 1 + state_group_str: HI + output: + # 13420 + 4670 * (1 - 1). + tax_unit_fpg: 13420 + +- name: HHS 2014 guideline for 2 people in HI + period: 2014 + input: + tax_unit_size: 2 + state_group_str: HI + output: + # 13420 + 4670 * (2 - 1). + tax_unit_fpg: 18090 diff --git a/policyengine_us/tests/policy/contrib/aca/ptc_minimum_premium.yaml b/policyengine_us/tests/policy/contrib/aca/ptc_minimum_premium.yaml index 282712e576e..8ae6964ff7e 100644 --- a/policyengine_us/tests/policy/contrib/aca/ptc_minimum_premium.yaml +++ b/policyengine_us/tests/policy/contrib/aca/ptc_minimum_premium.yaml @@ -191,3 +191,63 @@ aca_ptc: 5_940 # min(6,000, max(6,000, 3,000) - 60) used_aca_ptc: 2_940 # min(5,940, 3,000 - 60) marketplace_net_premium: 60 # 3,000 - 2,940 + +- name: An inactive minimum premium preserves the historical credit in 2014 + period: 2014 + absolute_error_margin: 0.01 + reforms: policyengine_us.reforms.aca.aca_ptc_minimum_premium.aca_ptc_minimum_premium + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + selected_marketplace_plan_premium_proxy: 12_000 + aca_magi: 30_000 + aca_magi_fraction: 2.50 + tax_unit_is_filer: true + output: + aca_ptc_minimum_premium: 0 + aca_ptc: 9585.0 # 12,000 - 30,000 * 0.0805. + +- name: An inactive minimum premium preserves the historical credit in 2017 + period: 2017 + absolute_error_margin: 0.01 + reforms: policyengine_us.reforms.aca.aca_ptc_minimum_premium.aca_ptc_minimum_premium + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + selected_marketplace_plan_premium_proxy: 12_000 + aca_magi: 30_000 + aca_magi_fraction: 2.50 + tax_unit_is_filer: true + output: + aca_ptc_minimum_premium: 0 + aca_ptc: 9537.0 # 12,000 - 30,000 * 0.0821. + +- name: The historical minimum-premium path floors supplied negative MAGI in 2014 + period: 2014 + absolute_error_margin: 0.01 + reforms: policyengine_us.reforms.aca.aca_ptc_minimum_premium.aca_ptc_minimum_premium + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + selected_marketplace_plan_premium_proxy: 12_000 + aca_magi: -1_000 + aca_magi_fraction: 0 + tax_unit_is_filer: true + output: + aca_ptc_minimum_premium: 0 + aca_ptc: 12_000 + +- name: The historical minimum-premium path floors supplied negative MAGI in 2017 + period: 2017 + absolute_error_margin: 0.01 + reforms: policyengine_us.reforms.aca.aca_ptc_minimum_premium.aca_ptc_minimum_premium + input: + is_aca_ptc_eligible: true + slcsp: 12_000 + selected_marketplace_plan_premium_proxy: 13_000 + aca_magi: -1_000 + aca_magi_fraction: 0 + tax_unit_is_filer: true + output: + aca_ptc_minimum_premium: 0 + aca_ptc: 12_000 diff --git a/policyengine_us/variables/gov/aca/ptc/aca_ptc.py b/policyengine_us/variables/gov/aca/ptc/aca_ptc.py index 5e044bca7b4..44197101a18 100644 --- a/policyengine_us/variables/gov/aca/ptc/aca_ptc.py +++ b/policyengine_us/variables/gov/aca/ptc/aca_ptc.py @@ -9,16 +9,16 @@ class aca_ptc(Variable): definition_period = YEAR reference = "https://www.law.cornell.edu/uscode/text/26/36B" documentation = ( - "IRC section 36B applies before 2018, but PolicyEngine applies the " - "ACA PTC formula from 2018 onward because rating-area SLCSP premium " - "data currently begins in 2018." + "The premium tax credit from 2014 onward, subject to filing a return. " + "For 2014 through 2017, benchmark premiums use 2018 rating-area " + "premiums scaled by the national benchmark premium index." ) defined_for = "is_aca_ptc_eligible" def formula(tax_unit, period, parameters): return 0 - def formula_2018(tax_unit, period, parameters): + def formula_2014(tax_unit, period, parameters): # IRC § 36B(a) conditions the PTC on filing a return (Form 8962), so # a tax unit that neither files nor takes up the credit receives $0. # Taking up the credit means filing to claim or reconcile it. diff --git a/policyengine_us/variables/gov/aca/ptc/aca_ptc_before_filing_gate.py b/policyengine_us/variables/gov/aca/ptc/aca_ptc_before_filing_gate.py index 9621dde4694..9391dacd69b 100644 --- a/policyengine_us/variables/gov/aca/ptc/aca_ptc_before_filing_gate.py +++ b/policyengine_us/variables/gov/aca/ptc/aca_ptc_before_filing_gate.py @@ -7,17 +7,30 @@ class aca_ptc_before_filing_gate(Variable): label = "ACA premium tax credit before the filing condition" unit = USD definition_period = YEAR - reference = "https://www.law.cornell.edu/uscode/text/26/36B#b" + reference = ( + "https://www.law.cornell.edu/uscode/text/26/36B#b", + "https://www.irs.gov/pub/irs-prior/i8962--2014.pdf#page=5", + "https://www.irs.gov/pub/irs-prior/i8962--2015.pdf#page=7", + "https://www.irs.gov/pub/irs-prior/i8962--2016.pdf#page=6", + "https://www.irs.gov/pub/irs-prior/i8962--2017.pdf#page=6", + ) documentation = ( "The premium tax credit the tax unit could claim on a return: the " "benchmark premium less the required contribution. aca_ptc is this " - "amount for a tax unit that files a return claiming it." + "amount for a tax unit that files a return claiming it. For 2014 through " + "2017, the IRS instructs filers to enter zero when combined MAGI is negative." ) defined_for = "is_aca_ptc_eligible" def formula(tax_unit, period, parameters): return 0 + def formula_2014(tax_unit, period, parameters): + plan_cost = tax_unit("slcsp", period) + income = max_(0, tax_unit("aca_magi", period)) + applicable_figure = tax_unit("aca_required_contribution_percentage", period) + return max_(0, plan_cost - income * applicable_figure) + def formula_2018(tax_unit, period, parameters): plan_cost = tax_unit("slcsp", period) income = tax_unit("aca_magi", period) diff --git a/policyengine_us/variables/gov/aca/slspc/slcsp_age_0.py b/policyengine_us/variables/gov/aca/slspc/slcsp_age_0.py index 256dc17df24..2c7e651e507 100644 --- a/policyengine_us/variables/gov/aca/slspc/slcsp_age_0.py +++ b/policyengine_us/variables/gov/aca/slspc/slcsp_age_0.py @@ -7,8 +7,28 @@ class slcsp_age_0(Variable): label = "Second-lowest ACA silver-plan for a person aged 0" unit = USD definition_period = MONTH + documentation = ( + "The benchmark premium in the model's 2018 age-zero normalization. " + "For 2014 through 2017, estimate each rating area's premium from its " + "2018 value times the national benchmark index ratio. Historical " + "age-curve multipliers retain this normalization." + ) + reference = ( + "https://www.kff.org/affordable-care-act/state-indicator/marketplace-average-benchmark-premiums/", + "https://www.kff.org/interactive/subsidy-calculator/", + ) - def formula(household, period, parameters): + def formula_2014(household, period, parameters): + state_code = household("state_code", period) + rating_area = household("slcsp_rating_area", period) + known = rating_area > 0 + safe_rating_area = where(known, rating_area, 1) + base = parameters("2018-01-01").gov.aca + cost = base.state_rating_area_cost[state_code][safe_rating_area] + index = parameters(period).gov.aca.benchmark_premium_uprating + return where(known, cost * index / base.benchmark_premium_uprating, 0) + + def formula_2018(household, period, parameters): # Get state code and rating area state_code = household("state_code", period) rating_area = household("slcsp_rating_area", period) diff --git a/policyengine_us/variables/gov/aca/slspc/slcsp_age_curve_multiplier.py b/policyengine_us/variables/gov/aca/slspc/slcsp_age_curve_multiplier.py index a69d969b28d..9fd657ed792 100644 --- a/policyengine_us/variables/gov/aca/slspc/slcsp_age_curve_multiplier.py +++ b/policyengine_us/variables/gov/aca/slspc/slcsp_age_curve_multiplier.py @@ -7,12 +7,22 @@ class slcsp_age_curve_multiplier(Variable): label = "ACA SLCSP age curve multiplier" unit = "/1" definition_period = MONTH + reference = ( + "https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1", + "https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf#page=1", + ) + documentation = ( + "Historical federal child factors retain the 2018 premium normalization. " + "New Jersey's historical curve preserves the age-40 benchmark premium." + ) def formula(person, period, parameters): state_code = person.household("state_code_str", period) age = person("monthly_age", period) p = parameters(period).gov.aca.age_curves + anchor_age = np.full_like(age, 40) + new_jersey = p.nj.calc(age) / p.nj.calc(anchor_age) * p.default.calc(anchor_age) return select( [ state_code == "AL", @@ -20,6 +30,7 @@ def formula(person, period, parameters): state_code == "MA", state_code == "MN", state_code == "MS", + (state_code == "NJ") & p.nj_in_effect, state_code == "NY", state_code == "OR", state_code == "UT", @@ -31,6 +42,7 @@ def formula(person, period, parameters): p.ma.calc(age), p.mn.calc(age), p.ms.calc(age), + new_jersey, p.ny.calc(age), p["or"].calc(age), p.ut.calc(age), diff --git a/policyengine_us/variables/gov/aca/slspc/slcsp_family_tier_multiplier.py b/policyengine_us/variables/gov/aca/slspc/slcsp_family_tier_multiplier.py index 64f85feb3d7..c9ba01917d7 100644 --- a/policyengine_us/variables/gov/aca/slspc/slcsp_family_tier_multiplier.py +++ b/policyengine_us/variables/gov/aca/slspc/slcsp_family_tier_multiplier.py @@ -4,6 +4,52 @@ ) +def _family_tier_components(tax_unit, period, parameters): + family_category = tax_unit("slcsp_family_tier_category", period) + p = parameters(period).gov.aca.family_tier_ratings + state_code = tax_unit.household("state_code", period) + in_ny = state_code == state_code.possible_values.NY + + one_adult = where(in_ny, p.ny.ONE_ADULT, p.vt.ONE_ADULT) + two_adults = where(in_ny, p.ny.TWO_ADULTS, p.vt.TWO_ADULTS) + one_adult_with_children = where( + in_ny, + p.ny.ONE_ADULT_AND_ONE_OR_MORE_CHILDREN, + p.vt.ONE_ADULT_AND_ONE_OR_MORE_CHILDREN, + ) + two_adults_with_children = where( + in_ny, + p.ny.TWO_ADULTS_AND_ONE_OR_MORE_CHILDREN, + p.vt.TWO_ADULTS_AND_ONE_OR_MORE_CHILDREN, + ) + child_only = where(in_ny, p.ny.CHILD_ONLY, 0) + + base_multiplier = select( + [ + family_category == FamilyTierCategory.ONE_ADULT, + family_category == FamilyTierCategory.TWO_ADULTS, + family_category == FamilyTierCategory.ONE_ADULT_AND_ONE_OR_MORE_CHILDREN, + family_category == FamilyTierCategory.TWO_ADULTS_AND_ONE_OR_MORE_CHILDREN, + family_category == FamilyTierCategory.CHILD_ONLY, + ], + [ + one_adult, + two_adults, + one_adult_with_children, + two_adults_with_children, + child_only, + ], + default=0, + ) + + person = tax_unit.members + pays_premium = person("pays_aca_premium", period) + dependent_child = person("is_aca_family_tier_dependent_child", period) + adult_count = tax_unit.sum(pays_premium & ~dependent_child) + extra_adults = max_(adult_count - 2, 0) + return base_multiplier, extra_adults * one_adult + + class slcsp_family_tier_multiplier(Variable): value_type = float entity = TaxUnit @@ -11,56 +57,27 @@ class slcsp_family_tier_multiplier(Variable): unit = "/1" definition_period = MONTH defined_for = "slcsp_family_tier_applies" + documentation = ( + "For 2014 benchmark estimates, New York extended dependents use the " + "ordinary child tier without an additional premium factor. " + "From 2015, the calculation applies the New York Age 29 adjustment." + ) - def formula(tax_unit, period, parameters): - family_category = tax_unit("slcsp_family_tier_category", period) - p = parameters(period).gov.aca.family_tier_ratings - state_code = tax_unit.household("state_code", period) - in_ny = state_code == state_code.possible_values.NY - - one_adult = where(in_ny, p.ny.ONE_ADULT, p.vt.ONE_ADULT) - two_adults = where(in_ny, p.ny.TWO_ADULTS, p.vt.TWO_ADULTS) - one_adult_with_children = where( - in_ny, - p.ny.ONE_ADULT_AND_ONE_OR_MORE_CHILDREN, - p.vt.ONE_ADULT_AND_ONE_OR_MORE_CHILDREN, + def formula_2014(tax_unit, period, parameters): + base_multiplier, extra_adult_multiplier = _family_tier_components( + tax_unit, period, parameters ) - two_adults_with_children = where( - in_ny, - p.ny.TWO_ADULTS_AND_ONE_OR_MORE_CHILDREN, - p.vt.TWO_ADULTS_AND_ONE_OR_MORE_CHILDREN, - ) - child_only = where(in_ny, p.ny.CHILD_ONLY, 0) + return base_multiplier + extra_adult_multiplier - base_multiplier = select( - [ - family_category == FamilyTierCategory.ONE_ADULT, - family_category == FamilyTierCategory.TWO_ADULTS, - family_category - == FamilyTierCategory.ONE_ADULT_AND_ONE_OR_MORE_CHILDREN, - family_category - == FamilyTierCategory.TWO_ADULTS_AND_ONE_OR_MORE_CHILDREN, - family_category == FamilyTierCategory.CHILD_ONLY, - ], - [ - one_adult, - two_adults, - one_adult_with_children, - two_adults_with_children, - child_only, - ], - default=0, + def formula_2015(tax_unit, period, parameters): + base_multiplier, extra_adult_multiplier = _family_tier_components( + tax_unit, period, parameters ) - person = tax_unit.members - pays_premium = person("pays_aca_premium", period) - dependent_child = person("is_aca_family_tier_dependent_child", period) - adult_count = tax_unit.sum(pays_premium & ~dependent_child) - extra_adults = max_(adult_count - 2, 0) age_29_child = person("is_aca_ny_age_29_dependent_child", period) age_29_multiplier = where( tax_unit.any(age_29_child), parameters(period).gov.aca.ny_age_29_dependent_child_tier_multiplier, 1, ) - return base_multiplier * age_29_multiplier + extra_adults * one_adult + return base_multiplier * age_29_multiplier + extra_adult_multiplier From f848c0ad42f7227c11629af6c9d1db576bbcecc3 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 02:02:52 -0500 Subject: [PATCH 02/14] Supply annual states in historical age-curve tests Set the state input for the coverage year in December cases. This lets the New Jersey case exercise its historical curve. Co-Authored-By: Claude Opus 5.5 --- .../baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml index 12e3a86c58d..258204fdabf 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml @@ -42,7 +42,8 @@ absolute_error_margin: 0.000001 input: monthly_age: [0, 14, 15, 20, 21, 40, 64] - state_code: [TX, TX, TX, TX, TX, TX, TX] + state_code: + 2017: [TX, TX, TX, TX, TX, TX, TX] output: # CMS 2013 child ratio / the 2018 base ratio = 0.635 / 0.765. # Adult multipliers retain the model's 2018 normalization. @@ -71,7 +72,8 @@ absolute_error_margin: 0.000001 input: monthly_age: [0, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65] - state_code: [NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ] + state_code: + 2017: [NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ] output: # CMS NJ ratios * the model's age-40 multiplier / CMS NJ age-40 ratio. # Children: 0.75 * 1.6706 / 1.393 = 0.8994615937. From 645fc88a453270d4431deeec12ea9010b5de748a Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 02:47:52 -0500 Subject: [PATCH 03/14] Keep ACA property checks within the memory cap Compare credits with the calculated annual benchmark after monthly input conversion. Release simulations and dated parameter caches between checks to bound memory use. Co-Authored-By: Claude Opus 5.5 --- ...ired_contribution_percentage_properties.py | 183 +++++++++++------- 1 file changed, 112 insertions(+), 71 deletions(-) diff --git a/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py b/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py index 492386f0c5c..53452f404c9 100644 --- a/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py +++ b/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py @@ -40,7 +40,10 @@ These tests run in the `core` group of the rest Python tests. """ +import gc + import numpy as np +import pytest from hypothesis import HealthCheck, given, settings from hypothesis import strategies as st @@ -77,7 +80,28 @@ ) +def clear_parameter_caches(system): + root = system.parameters + system._parameters_at_instant_cache.clear() + for node in (root, *root.get_descendants()): + cache = getattr(node, "_at_instant_cache", None) + if cache is not None: + cache.clear() + + +@pytest.fixture(autouse=True) +def clear_shared_parameter_caches(): + # Monthly benchmark reads cache snapshots of the entire parameter tree. + system = Simulation.default_tax_benefit_system_instance + clear_parameter_caches(system) + yield + clear_parameter_caches(system) + gc.collect() + + def build(tax_unit_inputs, years): + # Collect simulation reference cycles between generated cases. + gc.collect() people, tax_units, households = {}, {}, {} groups = {"marital_units": {}, "spm_units": {}, "families": {}} for index, inputs in enumerate(tax_unit_inputs): @@ -122,39 +146,43 @@ def table(simulation, year): @given(fractions.map(lambda drawn: sorted(KNOTS + drawn))) def test_applicable_percentage_table(points): simulation = build([{"aca_magi_fraction": x} for x in points], YEARS) - x = np.array(points) - # The fractions the model sees, after float32 storage. - seen = x.astype(np.float32).astype(float) - for year in YEARS: - thresholds, initial, final = table(simulation, year) - # Every edge is probed; a new or mistyped edge must be added to EDGES. - assert set(thresholds) <= set(EDGES), (year, thresholds) - rate = np.asarray( - simulation.calculate("aca_required_contribution_percentage", year) - ) - # Property 1. - for tier, edge in enumerate(thresholds[:-1]): + try: + x = np.array(points) + # The fractions the model sees, after float32 storage. + seen = x.astype(np.float32).astype(float) + for year in YEARS: + thresholds, initial, final = table(simulation, year) + # Every edge is probed; a new or mistyped edge must be added to EDGES. + assert set(thresholds) <= set(EDGES), (year, thresholds) + rate = np.asarray( + simulation.calculate("aca_required_contribution_percentage", year) + ) + # Property 1. + for tier, edge in enumerate(thresholds[:-1]): + np.testing.assert_allclose( + rate[x == edge], initial[tier], atol=TOLERANCE, err_msg=str(year) + ) np.testing.assert_allclose( - rate[x == edge], initial[tier], atol=TOLERANCE, err_msg=str(year) + rate[x == thresholds[-1]], final[-1], atol=TOLERANCE, err_msg=str(year) + ) + # Property 2. + tier = np.clip( + np.searchsorted(thresholds, seen, side="right") - 1, 0, len(initial) - 1 ) - np.testing.assert_allclose( - rate[x == thresholds[-1]], final[-1], atol=TOLERANCE, err_msg=str(year) - ) - # Property 2. - tier = np.clip( - np.searchsorted(thresholds, seen, side="right") - 1, 0, len(initial) - 1 - ) - slope = (final - initial) / np.diff(thresholds) - assert (rate >= initial[tier] - TOLERANCE).all(), year - assert (rate <= final[tier] + TOLERANCE).all(), year - for upper, top, rise in zip(thresholds[1:], final, slope): - below = rate[x == upper - EPSILON] - assert (top - below >= -TOLERANCE).all(), year - assert (top - below <= rise * EPSILON + TOLERANCE).all(), year - line = initial[tier] + slope[tier] * (seen - thresholds[tier]) - assert (np.abs(rate - line) <= ROUNDING / 2 + TOLERANCE).all(), year - # Property 3. - assert (np.diff(rate) >= -TOLERANCE).all(), year + slope = (final - initial) / np.diff(thresholds) + assert (rate >= initial[tier] - TOLERANCE).all(), year + assert (rate <= final[tier] + TOLERANCE).all(), year + for upper, top, rise in zip(thresholds[1:], final, slope): + below = rate[x == upper - EPSILON] + assert (top - below >= -TOLERANCE).all(), year + assert (top - below <= rise * EPSILON + TOLERANCE).all(), year + line = initial[tier] + slope[tier] * (seen - thresholds[tier]) + assert (np.abs(rate - line) <= ROUNDING / 2 + TOLERANCE).all(), year + # Property 3. + assert (np.diff(rate) >= -TOLERANCE).all(), year + finally: + del simulation + gc.collect() @settings( @@ -178,23 +206,30 @@ def test_required_contribution_rises_with_income(incomes, slcsp): ], CONTRIBUTION_YEARS, ) - income = np.array(incomes, dtype=float) - for year in CONTRIBUTION_YEARS: - fraction = np.asarray(simulation.calculate("aca_magi_fraction", year)) - rate = np.asarray( - simulation.calculate("aca_required_contribution_percentage", year) - ) - credit = np.asarray(simulation.calculate("aca_ptc_before_filing_gate", year)) - # Property 5 also covers the zero floor outside the income range. - assert (credit >= 0).all(), year - bounded = np.ones(len(income), dtype=bool) if year < 2018 else income >= 0 - assert (credit[bounded] <= slcsp + 1e-6).all(), year - within = fraction <= 4 - contribution_income = np.maximum(income, 0) if year < 2018 else income - contribution = (contribution_income * rate)[within] - # Property 4. - assert (np.diff(contribution) >= -1e-6).all(), year - assert (np.diff(credit[within]) <= 1e-6).all(), year + try: + income = np.array(incomes, dtype=float) + for year in CONTRIBUTION_YEARS: + fraction = np.asarray(simulation.calculate("aca_magi_fraction", year)) + rate = np.asarray( + simulation.calculate("aca_required_contribution_percentage", year) + ) + credit = np.asarray( + simulation.calculate("aca_ptc_before_filing_gate", year) + ) + benchmark = np.asarray(simulation.calculate("slcsp", year)) + # Property 5 also covers the zero floor outside the income range. + assert (credit >= 0).all(), year + bounded = np.ones(len(income), dtype=bool) if year < 2018 else income >= 0 + assert (credit[bounded] <= benchmark[bounded] + 1e-6).all(), year + within = fraction <= 4 + contribution_income = np.maximum(income, 0) if year < 2018 else income + contribution = (contribution_income * rate)[within] + # Property 4. + assert (np.diff(contribution) >= -1e-6).all(), year + assert (np.diff(credit[within]) <= 1e-6).all(), year + finally: + del simulation + gc.collect() # Freeze the tables used before extending historical coverage. Repeated knots @@ -260,28 +295,34 @@ def test_post_2017_credit_matches_existing_rules(drawn): ], tuple(POST_2017_TABLES), ) - fractions, incomes, premiums = np.array(rows, dtype=np.float32).T - for year, (initial, final) in POST_2017_TABLES.items(): - thresholds = [0, 1.5, 2, 2.5, 3, 4] - if not 2021 <= year <= 2025: - thresholds.insert(1, 1.33) - knots = np.repeat(thresholds, 2)[1:-1] - expected_rate = np.interp( - fractions, knots, np.column_stack((initial, final)).ravel() - ) - if not 2021 <= year <= 2025: - expected_rate = np.where(fractions > 4, 0, expected_rate) - rate = simulation.calculate("aca_required_contribution_percentage", year) - np.testing.assert_allclose( - rate, expected_rate, atol=TOLERANCE, err_msg=str(year) - ) - expected_credit = np.maximum(0, premiums - incomes * expected_rate) - for variable in ("aca_ptc_before_filing_gate", "aca_ptc"): - credit = simulation.calculate(variable, year) + try: + fractions, incomes, premiums = np.array(rows, dtype=np.float32).T + for year, (initial, final) in POST_2017_TABLES.items(): + thresholds = [0, 1.5, 2, 2.5, 3, 4] + if not 2021 <= year <= 2025: + thresholds.insert(1, 1.33) + knots = np.repeat(thresholds, 2)[1:-1] + expected_rate = np.interp( + fractions, knots, np.column_stack((initial, final)).ravel() + ) + if not 2021 <= year <= 2025: + expected_rate = np.where(fractions > 4, 0, expected_rate) + rate = simulation.calculate("aca_required_contribution_percentage", year) np.testing.assert_allclose( - credit, - expected_credit, - rtol=1e-6, - atol=0.02, - err_msg=f"{year}: {variable}", + rate, expected_rate, atol=TOLERANCE, err_msg=str(year) ) + expected_credit = np.maximum(0, premiums - incomes * expected_rate) + for variable in ("aca_ptc_before_filing_gate", "aca_ptc"): + credit = simulation.calculate(variable, year) + np.testing.assert_allclose( + credit, + expected_credit, + rtol=1e-6, + atol=0.02, + err_msg=f"{year}: {variable}", + ) + clear_parameter_caches(simulation.tax_benefit_system) + gc.collect() + finally: + del simulation + gc.collect() From dbbade02c62815cdd76da1e6d82001e1794c5c2d Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 15 Nov 2026 03:20:21 -0500 Subject: [PATCH 04/14] Keep historical premium estimates outside verified ACA coverage Retain verification from 2024 and clarify that the IRS negative-MAGI instruction continues after 2017. Co-Authored-By: Claude Opus 5.5 --- policyengine_us/programs.yaml | 2 +- policyengine_us/tests/test_programs_registry.py | 6 ++++++ .../variables/gov/aca/ptc/aca_ptc_before_filing_gate.py | 7 +++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/policyengine_us/programs.yaml b/policyengine_us/programs.yaml index e56bf49aa31..e1d2a28da98 100644 --- a/policyengine_us/programs.yaml +++ b/policyengine_us/programs.yaml @@ -429,7 +429,7 @@ programs: has_state_variation: true variable: aca_ptc parameter_prefix: gov.aca - verified_start_year: 2014 + verified_start_year: 2024 notes: 2014 PTC calculations use supplied MAGI and coverage eligibility; 2014-2017 benchmark premiums use estimates from 2018 rating-area premiums. - id: tanf diff --git a/policyengine_us/tests/test_programs_registry.py b/policyengine_us/tests/test_programs_registry.py index 593b481391f..499184d6195 100644 --- a/policyengine_us/tests/test_programs_registry.py +++ b/policyengine_us/tests/test_programs_registry.py @@ -146,3 +146,9 @@ def test_known_unresolved_references_are_still_unresolved(system): "These KNOWN_UNRESOLVED keys now resolve or no longer exist; " f"delete them: {stale}" ) + + +def test_aca_historical_estimates_do_not_extend_verified_coverage(): + # Historical premium estimates and supplied 2014 inputs do not verify + # ordinary household calculations for those years. + assert ENTRIES_BY_LABEL["aca_subsidies"]["verified_start_year"] == 2024 diff --git a/policyengine_us/variables/gov/aca/ptc/aca_ptc_before_filing_gate.py b/policyengine_us/variables/gov/aca/ptc/aca_ptc_before_filing_gate.py index f703c09d5bf..ccc447aa99a 100644 --- a/policyengine_us/variables/gov/aca/ptc/aca_ptc_before_filing_gate.py +++ b/policyengine_us/variables/gov/aca/ptc/aca_ptc_before_filing_gate.py @@ -13,12 +13,15 @@ class aca_ptc_before_filing_gate(Variable): "https://www.irs.gov/pub/irs-prior/i8962--2015.pdf#page=7", "https://www.irs.gov/pub/irs-prior/i8962--2016.pdf#page=6", "https://www.irs.gov/pub/irs-prior/i8962--2017.pdf#page=6", + "https://www.irs.gov/pub/irs-prior/i8962--2018.pdf#page=6", ) documentation = ( "The premium tax credit the tax unit could claim on a return: the " "benchmark premium less the required contribution. aca_ptc is this " - "amount for a tax unit that files a return claiming it. For 2014 through " - "2017, the IRS instructs filers to enter zero when combined MAGI is negative." + "amount for a tax unit that files a return claiming it. The IRS instructs " + "filers to enter zero when combined MAGI is negative, including after " + "2017. This variable applies that floor in 2014–2017; correcting the " + "2018+ negative-input calculation needs a separate change." ) defined_for = "is_aca_ptc_eligible" From e0b1c357b6e0a22e690658b56b906cd76c48db51 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 15 Nov 2026 03:20:46 -0500 Subject: [PATCH 05/14] Use prior poverty guidelines for historical premium tax credits Read the 2013 and 2014 guideline parameters with coverage-year household inputs. Preserve coverage-family tests and the original 2017 input cases alongside the pre-coverage guards. Co-Authored-By: Claude Opus 5.5 --- ...ired_contribution_percentage_properties.py | 3 + .../baseline/gov/aca/eligibility/aca_fpg.yaml | 56 +++++++++++++ .../aca/eligibility/aca_magi_fraction.yaml | 12 +-- .../policy/baseline/gov/aca/ptc/aca_ptc.yaml | 78 ++++++++++++++++++- .../variables/gov/aca/eligibility/aca_fpg.py | 36 ++++----- 5 files changed, 160 insertions(+), 25 deletions(-) diff --git a/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py b/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py index 53452f404c9..d9b13c16eca 100644 --- a/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py +++ b/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py @@ -109,9 +109,11 @@ def build(tax_unit_inputs, years): people[person] = { "age": {year: 40 for year in years}, "is_aca_ptc_eligible": {year: True for year in years}, + "is_aca_marketplace_enrollee": {year: True for year in years}, } tax_units[f"tax_unit_{index}"] = { "members": members, + "filing_status": {year: "SINGLE" for year in years}, **{name: {year: value for year in years} for name, value in inputs.items()}, } households[f"household_{index}"] = { @@ -227,6 +229,7 @@ def test_required_contribution_rises_with_income(incomes, slcsp): # Property 4. assert (np.diff(contribution) >= -1e-6).all(), year assert (np.diff(credit[within]) <= 1e-6).all(), year + clear_parameter_caches(simulation.tax_benefit_system) finally: del simulation gc.collect() diff --git a/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml b/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml index ea84ca29d74..846e8125ba9 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml @@ -278,3 +278,59 @@ # have used the supplied 2024 size of 2 (20,440). aca_tax_family_size: 3 aca_fpg: 25_820 + +- name: A 2015 Alaska joint return uses the prior guideline with coverage-year household inputs + period: 2015 + absolute_error_margin: 0.001 + input: + people: + head: + age: 40 + takes_up_ak_permanent_fund_dividend_if_eligible: false + employment_income: 49_150 + is_tax_unit_head: true + is_tax_unit_spouse: false + spouse: + age: 40 + takes_up_ak_permanent_fund_dividend_if_eligible: false + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + unit: + members: [head, spouse] + filing_status: JOINT + households: + household: + members: [head, spouse] + state_code: AK + output: + # IRS 2015 Form 8962 line 4, Table 1-2: 14,580 + 5,080 = 19,660. + # Line 5: floor(49,150 / 19,660 * 100) / 100 = 2.50. + # https://www.irs.gov/pub/irs-prior/i8962--2015.pdf#page=7 + aca_fpg: 19_660 + aca_magi: 49_150 + aca_tax_family_size: 2 + aca_magi_fraction: 2.5 + +- name: A 2014 Alaska return uses the 2013 guideline for its tax family + period: 2014 + input: + aca_tax_family_size: 2 + state_code: AK + output: + # IRS 2014 Form 8962 line 4, Table 1-2: 14,350 + 5,030 = 19,380. + # https://www.irs.gov/pub/irs-prior/i8962--2014.pdf#page=6 + aca_fpg: 19_380 + +- name: Coverage in 2015 uses current residence with the 2014 guideline + period: 2015 + input: + aca_tax_family_size: 2 + state_code: + 2014: TX + 2015: AK + output: + # IRS 2015 Form 8962 line 4 uses 2015 residence and the 2014 table: + # Alaska, two people = 14,580 + 5,080 = 19,660. + # https://www.irs.gov/pub/irs-prior/i8962--2015.pdf#page=7 + aca_fpg: 19_660 diff --git a/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_magi_fraction.yaml b/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_magi_fraction.yaml index 0be43407ad3..f4156065de0 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_magi_fraction.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_magi_fraction.yaml @@ -1,6 +1,6 @@ # ACA MAGI as a fraction of the poverty guideline, floored to two decimals. # 26 U.S.C. 36B(d)(3)(B) measures income against the guideline for the year -# before the coverage year. The model's guidelines start in 2015. +# before the coverage year. Explicit guidelines support coverage from 2014. - name: Coverage in 2016 uses the 2015 guideline. # 30,000 / 11,770 = 2.5488, floored to 2.54. The 2016 guideline (11,880) @@ -21,10 +21,10 @@ output: aca_magi_fraction: 2.54 -- name: Coverage in 2015, the first modeled year, uses the coverage year's guideline. - # The year before is not modeled, so the 2015 guideline stands in for the - # 2014 guideline the statute calls for: 30,000 / 11,770 = 2.5488, floored - # to 2.54. +- name: Coverage in 2015 uses the 2014 guideline. + # IRS 2015 Form 8962 line 4 uses 11,670 for one person in the contiguous + # states: floor(30,000 / 11,670 * 100) / 100 = 2.57. + # https://www.irs.gov/pub/irs-prior/i8962--2015.pdf#page=7 period: 2015 input: people: @@ -39,7 +39,7 @@ members: [person1] state_code: TX output: - aca_magi_fraction: 2.54 + aca_magi_fraction: 2.57 - name: 2025 joint return with one claimable spouse measures income against the one-person line (the claimable spouse is the head) period: 2025 diff --git a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml index 9129639edfa..620c56e084f 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml @@ -426,6 +426,8 @@ absolute_error_margin: 0.01 period: 2014 input: + filing_status: SINGLE + is_aca_marketplace_enrollee: true is_aca_ptc_eligible: true slcsp: 12_000 aca_magi: 30_000 @@ -479,7 +481,6 @@ aca_ptc: 9537.0000 - name: ACA PTC interpolates the 2017 percentage at 140 percent FPL. - # Matches the ACABefore2018 reference implementation's 140 percent case. # 0.0306 + (1.40 - 1.33) / (1.50 - 1.33) * (0.0408 - 0.0306) = 0.0348. absolute_error_margin: 0.01 period: 2017 @@ -529,6 +530,7 @@ adult: age: 40 pays_aca_premium: true + is_aca_marketplace_enrollee: true tax_units: unit: members: [adult] @@ -644,6 +646,7 @@ - name: Income above 400 percent receives no credit in 2014. period: 2014 input: + is_aca_marketplace_enrollee: true pays_aca_premium: true aca_magi_fraction: 4.01 aca_magi: 60_000 @@ -701,6 +704,8 @@ period: 2014 absolute_error_margin: 0.01 input: + filing_status: SINGLE + is_aca_marketplace_enrollee: true is_aca_ptc_eligible: true slcsp: 12_000 aca_magi: -1_000 @@ -1730,3 +1735,74 @@ is_aca_tax_family_member: [true, false] aca_ptc: 6000 is_aca_filer: [true, true] + +- name: "2017 joint return with one claimable spouse: credit for the other spouse's benchmark (the claimable spouse is the head)" + period: 2017 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + claimable_as_dependent_on_another_return: true + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 17_820 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: TX + # Annual base: adults cost 6,000 and children cost 3,000. + slcsp_age_0: 6000 + output: + # 150% FPL for one: 17,820 / 11,880 = 1.50. + # Credit = 6,000 - 17,820 * 0.0408 = 5,272.944. + aca_tax_family_size: 1 + aca_ptc_slcsp: 6000 + aca_ptc: 5272.944 + + +- name: ACA PTC calculates the historical 2017 credit from supplied premiums + period: 2017 + absolute_error_margin: 0.01 + input: + is_aca_ptc_eligible: true + slcsp: 1_200 + aca_magi: 25_000 + aca_required_contribution_percentage: 0.04 + tax_unit_is_filer: true + output: + # 1,200 - 25,000 * 0.04 = 200; coverage began in 2014. + aca_ptc: 200 + +- name: ACA PTC calculates the historical 2017 credit before the filing condition + period: 2017 + absolute_error_margin: 0.01 + input: + is_aca_ptc_eligible: true + slcsp: 1_200 + aca_magi: 25_000 + aca_required_contribution_percentage: 0.04 + tax_unit_is_filer: true + output: + # 1,200 - 25,000 * 0.04 = 200 for both credit variables. + aca_ptc_before_filing_gate: 200 + aca_ptc: 200 diff --git a/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py b/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py index e20b62b7f6c..f7aa012a941 100644 --- a/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py +++ b/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py @@ -2,6 +2,8 @@ from policyengine_us.tools.parameters import FIRST_MODELED_YEAR from policyengine_us.variables.gov.hhs.tax_unit_fpg import fpg +FIRST_PTC_GUIDELINE_YEAR = 2013 + class aca_fpg(Variable): value_type = float @@ -11,35 +13,33 @@ class aca_fpg(Variable): definition_period = YEAR reference = ( "https://www.law.cornell.edu/uscode/text/26/36B#d_3", + "https://www.govinfo.gov/content/pkg/USCODE-2014-title26/pdf/USCODE-2014-title26-subtitleA-chap1-subchapA-partIV-subpartC-sec36B.pdf#page=4", + "https://www.irs.gov/pub/irs-prior/i8962--2014.pdf#page=6", + "https://www.irs.gov/pub/irs-prior/i8962--2015.pdf#page=7", # Line 1 (tax family size) and line 4 (poverty line). "https://www.irs.gov/pub/irs-prior/i8962--2025.pdf#page=8", ) documentation = ( "Form 8962 line 4: the prior year's poverty guideline for the tax " - "year's tax family size on line 1 (aca_tax_family_size). The former " - "lookup, tax_unit_fpg for the prior year, also took the household " - "size from the prior year; the size now comes from the tax year, as " - "line 1 requires, which differs only when a prior-year size is " - "supplied. A return on which every head and spouse can be claimed " - "elsewhere has no tax family and no applicable taxpayer; as a " - "numerical convention, not a legal rule, it keeps the guideline for " - "the whole tax unit, so readers that are not about the credit see " - "the same value as before. For the first modeled year, the year " - "before precedes the model, so the tax year's guideline stands in." + "year's tax family size on line 1 (aca_tax_family_size). The 2013 " + "guidelines support coverage from 2014. Coverage in 2014 and 2015 " + "uses residence in the coverage year; later years retain the " + "existing prior-year residence lookup. A return with no tax family " + "uses the whole tax unit's size as a numerical convention." ) def formula(tax_unit, period, parameters): family_size = tax_unit("aca_tax_family_size", period) size = where(family_size > 0, family_size, tax_unit("tax_unit_size", period)) - # The guideline year lags the tax year (26 U.S.C. 36B(d)(3)(B)), and - # the state group is read for the guideline year. For the first - # modeled year, the year before precedes the model, so the tax year's - # guideline stands in and nothing is computed for an unmodeled year. - # For that one year the line uses a later guideline than - # 36B(d)(3)(B) calls for. + # Lag the guideline date without lowering the wider model's floor. guideline_period = period.last_year - if guideline_period.start.year < FIRST_MODELED_YEAR: + if guideline_period.start.year < FIRST_PTC_GUIDELINE_YEAR: guideline_period = period - state_group = tax_unit.household("state_group_str", guideline_period) + state_period = guideline_period + if state_period.start.year < FIRST_MODELED_YEAR: + # Form 8962 line 4 uses coverage-year residence. Historical + # households need not supply geography for an earlier year. + state_period = period + state_group = tax_unit.household("state_group_str", state_period) year_lag = period.start.year - guideline_period.start.year return fpg(size, state_group, period, parameters, year_lag=year_lag) From f27d38cbbed8df84eedd83b07357b2a4ede1ec16 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 15 Nov 2026 03:25:05 -0500 Subject: [PATCH 06/14] Use the federal individual-market age curve in New Jersey Remove the unsupported small-group curve from historical individual premiums. Identify the Default column in the Alabama, Mississippi and Oregon references. Co-Authored-By: Claude Opus 5.5 --- .../parameters/gov/aca/age_curves/al.yaml | 2 +- .../parameters/gov/aca/age_curves/ms.yaml | 2 +- .../parameters/gov/aca/age_curves/nj.yaml | 143 ------------------ .../gov/aca/age_curves/nj_in_effect.yaml | 14 -- .../parameters/gov/aca/age_curves/or.yaml | 2 +- .../aca/slcsp/slcsp_age_curve_multiplier.yaml | 19 ++- .../aca/slspc/slcsp_age_curve_multiplier.py | 7 +- 7 files changed, 13 insertions(+), 176 deletions(-) delete mode 100644 policyengine_us/parameters/gov/aca/age_curves/nj.yaml delete mode 100644 policyengine_us/parameters/gov/aca/age_curves/nj_in_effect.yaml diff --git a/policyengine_us/parameters/gov/aca/age_curves/al.yaml b/policyengine_us/parameters/gov/aca/age_curves/al.yaml index 28cbcd0ed95..ba49a6aeee7 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/al.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/al.yaml @@ -6,7 +6,7 @@ metadata: threshold_unit: int label: ACA premium age curve factors - AL reference: - - title: CMS State Specific Age Curve Variations - August 9, 2013 + - title: CMS State Specific Age Curve Variations - August 9, 2013 (Default column) href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf diff --git a/policyengine_us/parameters/gov/aca/age_curves/ms.yaml b/policyengine_us/parameters/gov/aca/age_curves/ms.yaml index 6ab995fe164..6d7fc912017 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/ms.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/ms.yaml @@ -5,7 +5,7 @@ metadata: threshold_unit: int label: ACA premium age curve factors - MS reference: - - title: CMS State Specific Age Curve Variations - August 9, 2013 + - title: CMS State Specific Age Curve Variations - August 9, 2013 (Default column) href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf diff --git a/policyengine_us/parameters/gov/aca/age_curves/nj.yaml b/policyengine_us/parameters/gov/aca/age_curves/nj.yaml deleted file mode 100644 index edea1339690..00000000000 --- a/policyengine_us/parameters/gov/aca/age_curves/nj.yaml +++ /dev/null @@ -1,143 +0,0 @@ -description: New Jersey uses these premium ratios for its historical ACA age curve, before normalization to the benchmark premium. -metadata: - type: single_amount - period: year - amount_unit: /1 - threshold_unit: year - label: ACA historical premium age curve ratios - NJ - reference: - - title: CMS State Specific Age Curve Variations - August 9, 2013 - href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 -brackets: -- threshold: - 2014-01-01: 0 - amount: - 2014-01-01: 0.75 -- threshold: - 2014-01-01: 21 - amount: - 2014-01-01: 1.25 -- threshold: - 2014-01-01: 29 - amount: - 2014-01-01: 1.275 -- threshold: - 2014-01-01: 30 - amount: - 2014-01-01: 1.287 -- threshold: - 2014-01-01: 31 - amount: - 2014-01-01: 1.305 -- threshold: - 2014-01-01: 32 - amount: - 2014-01-01: 1.323 -- threshold: - 2014-01-01: 33 - amount: - 2014-01-01: 1.334 -- threshold: - 2014-01-01: 34 - amount: - 2014-01-01: 1.346 -- threshold: - 2014-01-01: 35 - amount: - 2014-01-01: 1.352 -- threshold: - 2014-01-01: 36 - amount: - 2014-01-01: 1.358 -- threshold: - 2014-01-01: 37 - amount: - 2014-01-01: 1.363 -- threshold: - 2014-01-01: 38 - amount: - 2014-01-01: 1.369 -- threshold: - 2014-01-01: 39 - amount: - 2014-01-01: 1.381 -- threshold: - 2014-01-01: 40 - amount: - 2014-01-01: 1.393 -- threshold: - 2014-01-01: 41 - amount: - 2014-01-01: 1.41 -- threshold: - 2014-01-01: 42 - amount: - 2014-01-01: 1.427 -- threshold: - 2014-01-01: 43 - amount: - 2014-01-01: 1.45 -- threshold: - 2014-01-01: 44 - amount: - 2014-01-01: 1.478 -- threshold: - 2014-01-01: 45 - amount: - 2014-01-01: 1.511 -- threshold: - 2014-01-01: 46 - amount: - 2014-01-01: 1.55 -- threshold: - 2014-01-01: 47 - amount: - 2014-01-01: 1.593 -- threshold: - 2014-01-01: 48 - amount: - 2014-01-01: 1.641 -- threshold: - 2014-01-01: 49 - amount: - 2014-01-01: 1.688 -- threshold: - 2014-01-01: 50 - amount: - 2014-01-01: 1.741 -- threshold: - 2014-01-01: 51 - amount: - 2014-01-01: 1.792 -- threshold: - 2014-01-01: 52 - amount: - 2014-01-01: 1.847 -- threshold: - 2014-01-01: 53 - amount: - 2014-01-01: 1.902 -- threshold: - 2014-01-01: 54 - amount: - 2014-01-01: 1.961 -- threshold: - 2014-01-01: 55 - amount: - 2014-01-01: 2.019 -- threshold: - 2014-01-01: 56 - amount: - 2014-01-01: 2.08 -- threshold: - 2014-01-01: 57 - amount: - 2014-01-01: 2.142 -- threshold: - 2014-01-01: 58 - amount: - 2014-01-01: 2.206 -- threshold: - 2014-01-01: 59 - amount: - 2014-01-01: 2.28 diff --git a/policyengine_us/parameters/gov/aca/age_curves/nj_in_effect.yaml b/policyengine_us/parameters/gov/aca/age_curves/nj_in_effect.yaml deleted file mode 100644 index 8c729d23261..00000000000 --- a/policyengine_us/parameters/gov/aca/age_curves/nj_in_effect.yaml +++ /dev/null @@ -1,14 +0,0 @@ -description: New Jersey uses its state-specific age curve for individual marketplace premiums during this period. -values: - 0000-01-01: false - 2014-01-01: true - 2018-01-01: false -metadata: - unit: bool - period: year - label: New Jersey ACA state-specific individual age curve in effect - reference: - - title: CMS State Specific Age Curve Variations - August 9, 2013 - href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - - title: CMS State Specific Age Curve Variations - May 31, 2017 - href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf#page=1 diff --git a/policyengine_us/parameters/gov/aca/age_curves/or.yaml b/policyengine_us/parameters/gov/aca/age_curves/or.yaml index 120cf013b34..87c7848d5c9 100644 --- a/policyengine_us/parameters/gov/aca/age_curves/or.yaml +++ b/policyengine_us/parameters/gov/aca/age_curves/or.yaml @@ -6,7 +6,7 @@ metadata: threshold_unit: int label: ACA premium age curve factors - OR reference: - - title: CMS State Specific Age Curve Variations - August 9, 2013 + - title: CMS State Specific Age Curve Variations - August 9, 2013 (Default column) href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/2017-state-specific-age-curve-variations-8-9-2013.pdf#page=1 - title: CMS Market Rating Reforms State Specific Age Curve Variations href: https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf diff --git a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml index 258204fdabf..828f2efe28f 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/slcsp/slcsp_age_curve_multiplier.yaml @@ -67,7 +67,7 @@ output: slcsp_age_curve_multiplier: [1, 1, 1.0889, 1.268, 1.3072, 1.6706, 3.9216] -- name: New Jersey premiums follow its historical age curve. +- name: New Jersey individual premiums use the federal curve before 2018. period: 2017-12 absolute_error_margin: 0.000001 input: @@ -75,23 +75,22 @@ state_code: 2017: [NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ, NJ] output: - # CMS NJ ratios * the model's age-40 multiplier / CMS NJ age-40 ratio. - # Children: 0.75 * 1.6706 / 1.393 = 0.8994615937. - # Ages 21-28: 1.25 * 1.6706 / 1.393 = 1.4991026561. - # Age 59+: 2.28 * 1.6706 / 1.393 = 2.7343632448. - slcsp_age_curve_multiplier: [0.8994615937, 0.8994615937, 1.4991026561, 1.4991026561, 1.4991026561, 1.4991026561, 1.4991026561, 1.4991026561, 1.4991026561, 1.4991026561, 1.5290847093, 1.5434760948, 1.5650631730, 1.5866502513, 1.5998423546, 1.6142337401, 1.6214294329, 1.6286251256, 1.6346215363, 1.6418172290, 1.6562086145, 1.6706000000, 1.6909877961, 1.7113755922, 1.7389590811, 1.7725389806, 1.8121152907, 1.8588872936, 1.9104564250, 1.9680219670, 2.0243882268, 2.0879501795, 2.1491135678, 2.2150740847, 2.2810346016, 2.3517922469, 2.4213506102, 2.4945068198, 2.5688623116, 2.6456163676, 2.7343632448, 2.7343632448, 2.7343632448, 2.7343632448, 2.7343632448, 2.7343632448, 2.7343632448] + # CMS 2013 Default column: child factor = 0.635 / 0.765. + # Adults retain federal factors / 0.765, rounded to four decimals. + # CMS labels its separate NJ column Small Group in the 2017 table. + slcsp_age_curve_multiplier: [0.8300653595, 0.8300653595, 1.3072, 1.3072, 1.3072, 1.3072, 1.3124, 1.3386, 1.3699, 1.4209, 1.4627, 1.4837, 1.515, 1.5464, 1.566, 1.5869, 1.5974, 1.6078, 1.6183, 1.6288, 1.6497, 1.6706, 1.702, 1.732, 1.7739, 1.8261, 1.8876, 1.9608, 2.0431, 2.1373, 2.2301, 2.3346, 2.4379, 2.5516, 2.6667, 2.7908, 2.915, 3.0497, 3.1856, 3.3307, 3.4026, 3.5477, 3.6732, 3.7556, 3.8588, 3.9216, 3.9216] -- name: New Jersey uses its historical curve in 2014. +- name: New Jersey individual premiums use the federal curve in 2014. period: 2014-01 absolute_error_margin: 0.000001 input: monthly_age: [20, 21, 40] state_code: [NJ, NJ, NJ] output: - # CMS ratios [0.75, 1.25, 1.393] * 1.6706 / 1.393. - slcsp_age_curve_multiplier: [0.8994615937, 1.4991026561, 1.6706000000] + # Default child = 0.635 / 0.765; ages 21 and 40 retain 1.3072 and 1.6706. + slcsp_age_curve_multiplier: [0.8300653595, 1.3072, 1.6706] -- name: New Jersey moves to the federal age curve in 2018. +- name: New Jersey individual premiums retain the federal age curve in 2018. period: 2018-01 input: monthly_age: [0, 20, 21, 40, 64] diff --git a/policyengine_us/variables/gov/aca/slspc/slcsp_age_curve_multiplier.py b/policyengine_us/variables/gov/aca/slspc/slcsp_age_curve_multiplier.py index 9fd657ed792..3697fe531de 100644 --- a/policyengine_us/variables/gov/aca/slspc/slcsp_age_curve_multiplier.py +++ b/policyengine_us/variables/gov/aca/slspc/slcsp_age_curve_multiplier.py @@ -12,8 +12,7 @@ class slcsp_age_curve_multiplier(Variable): "https://www.cms.gov/cciio/programs-and-initiatives/health-insurance-market-reforms/downloads/statespecagecrv053117.pdf#page=1", ) documentation = ( - "Historical federal child factors retain the 2018 premium normalization. " - "New Jersey's historical curve preserves the age-40 benchmark premium." + "Historical federal child factors retain the 2018 premium normalization." ) def formula(person, period, parameters): @@ -21,8 +20,6 @@ def formula(person, period, parameters): age = person("monthly_age", period) p = parameters(period).gov.aca.age_curves - anchor_age = np.full_like(age, 40) - new_jersey = p.nj.calc(age) / p.nj.calc(anchor_age) * p.default.calc(anchor_age) return select( [ state_code == "AL", @@ -30,7 +27,6 @@ def formula(person, period, parameters): state_code == "MA", state_code == "MN", state_code == "MS", - (state_code == "NJ") & p.nj_in_effect, state_code == "NY", state_code == "OR", state_code == "UT", @@ -42,7 +38,6 @@ def formula(person, period, parameters): p.ma.calc(age), p.mn.calc(age), p.ms.calc(age), - new_jersey, p.ny.calc(age), p["or"].calc(age), p.ut.calc(age), From 75fb42cb1a117bfb3fb4356201a4d530ab0e2c7b Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 15 Nov 2026 03:46:32 -0500 Subject: [PATCH 07/14] Preserve historical coverage-family pricing under the premium reform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the coverage family benchmark in 2014–2017 and its allocated premium for the minimum-premium cap from 2015. Cover claimable spouses in each historical formula. Co-Authored-By: Claude Opus 5.5 --- .../reforms/aca/aca_ptc_minimum_premium.py | 12 +- .../contrib/aca/ptc_minimum_premium.yaml | 149 ++++++++++++++++++ 2 files changed, 157 insertions(+), 4 deletions(-) diff --git a/policyengine_us/reforms/aca/aca_ptc_minimum_premium.py b/policyengine_us/reforms/aca/aca_ptc_minimum_premium.py index cba7ca8ab04..0680b90de6e 100644 --- a/policyengine_us/reforms/aca/aca_ptc_minimum_premium.py +++ b/policyengine_us/reforms/aca/aca_ptc_minimum_premium.py @@ -29,7 +29,10 @@ class aca_ptc_before_filing_gate(Variable): label = "ACA premium tax credit before the filing condition" unit = USD definition_period = YEAR - reference = "https://www.law.cornell.edu/uscode/text/26/36B#b" + reference = ( + "https://www.law.cornell.edu/uscode/text/26/36B#b", + "https://www.govinfo.gov/content/pkg/CFR-2014-title26-vol1/pdf/CFR-2014-title26-vol1-sec1-36B-3.pdf#page=2", + ) documentation = ( "The coverage family's benchmark premium (aca_ptc_slcsp) less the " "required contribution, but no more than the enrolled premium less " @@ -46,19 +49,20 @@ def formula(tax_unit, period, parameters): return 0 def formula_2014(tax_unit, period, parameters): - plan_cost = tax_unit("slcsp", period) + # Price the coverage family separately (26 CFR 1.36B-3(f)). + plan_cost = tax_unit("aca_ptc_slcsp", period) income = max_(0, tax_unit("aca_magi", period)) applicable_figure = tax_unit("aca_required_contribution_percentage", period) return max_(0, plan_cost - income * applicable_figure) def formula_2015(tax_unit, period, parameters): - plan_cost = tax_unit("slcsp", period) + plan_cost = tax_unit("aca_ptc_slcsp", period) income = max_(0, tax_unit("aca_magi", period)) applicable_figure = tax_unit("aca_required_contribution_percentage", period) credit = max_(0, plan_cost - income * applicable_figure) enrolled_premium = max_( plan_cost, - tax_unit("selected_marketplace_plan_premium_proxy", period), + tax_unit("aca_ptc_coverage_family_premium", period), ) minimum = tax_unit("aca_ptc_minimum_premium", period) return min_(credit, max_(0, enrolled_premium - minimum)) diff --git a/policyengine_us/tests/policy/contrib/aca/ptc_minimum_premium.yaml b/policyengine_us/tests/policy/contrib/aca/ptc_minimum_premium.yaml index 91de92380f5..0d9240c3aca 100644 --- a/policyengine_us/tests/policy/contrib/aca/ptc_minimum_premium.yaml +++ b/policyengine_us/tests/policy/contrib/aca/ptc_minimum_premium.yaml @@ -204,6 +204,8 @@ absolute_error_margin: 0.01 reforms: policyengine_us.reforms.aca.aca_ptc_minimum_premium.aca_ptc_minimum_premium input: + filing_status: SINGLE + is_aca_marketplace_enrollee: true is_aca_ptc_eligible: true slcsp: 12_000 selected_marketplace_plan_premium_proxy: 12_000 @@ -234,6 +236,8 @@ absolute_error_margin: 0.01 reforms: policyengine_us.reforms.aca.aca_ptc_minimum_premium.aca_ptc_minimum_premium input: + filing_status: SINGLE + is_aca_marketplace_enrollee: true is_aca_ptc_eligible: true slcsp: 12_000 selected_marketplace_plan_premium_proxy: 12_000 @@ -408,3 +412,148 @@ aca_ptc_coverage_family_premium: 4_000 aca_ptc: 5_940 used_aca_ptc: 3_940 + +- name: A claimable spouse stays outside the historical 2015 benchmark and premium + # 26 U.S.C. 36B(c)(1)(D): the spouse who can be claimed on another return is + # outside the tax family, so the credit uses the other spouse's benchmark. + # 150% of the 2014 poverty guideline for one, 4.02% contribution: + # 6,000 - 0.0402 * 17,505 = 5,296.299, below the enrolled premium less the + # minimum (6,000 - 60), so the minimum does not bind. + period: 2015 + absolute_error_margin: 0.01 + reforms: policyengine_us.reforms.aca.aca_ptc_minimum_premium.aca_ptc_minimum_premium + input: + gov.contrib.aca.minimum_premium.in_effect: true + people: + person_a: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + claimable_as_dependent_on_another_return: true + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 17_505 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: TX + # Annual base: adults cost 6,000. + slcsp_age_0: 6000 + output: + aca_tax_family_size: 1 + aca_ptc_slcsp: 6_000 + aca_ptc_minimum_premium: 60 + aca_ptc: 5_296.299 + # The whole policy costs 12,000; the coverage family's share is + # 6,000 / (6,000 + 6,000), so 6,000, and the credit fits under 6,000 - 60. + aca_ptc_coverage_family_premium: 6_000 + used_aca_ptc: 5_296.299 + +- name: A claimable spouse stays outside the historical 2017 minimum-premium cap + # The household above with no required contribution. The credit is capped + # at the coverage family's enrolled premium less the minimum: + # 6,000 - 60 = 5,940. The whole policy's premium (12,000) would give 6,000. + period: 2017 + absolute_error_margin: 0.01 + reforms: policyengine_us.reforms.aca.aca_ptc_minimum_premium.aca_ptc_minimum_premium + input: + gov.contrib.aca.minimum_premium.in_effect: true + people: + person_a: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + claimable_as_dependent_on_another_return: true + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 23_475 + aca_required_contribution_percentage: 0 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: TX + slcsp_age_0: 6000 + output: + aca_tax_family_size: 1 + aca_ptc_slcsp: 6_000 + aca_ptc_coverage_family_premium: 6_000 + aca_ptc: 5_940 + used_aca_ptc: 5_940 + +- name: A claimable spouse stays outside the historical 2014 benchmark + period: 2014 + absolute_error_margin: 0.01 + reforms: policyengine_us.reforms.aca.aca_ptc_minimum_premium.aca_ptc_minimum_premium + input: + people: + person_a: + age: 30 + is_aca_marketplace_enrollee: true + is_aca_ptc_eligible: false + is_aca_tax_family_member: false + claimable_as_dependent_on_another_return: true + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_aca_marketplace_enrollee: true + is_aca_ptc_eligible: true + is_aca_tax_family_member: true + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 17_235 + aca_magi_fraction: 1.5 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: TX + slcsp_age_0: 6_000 + output: + # 26 CFR 1.36B-3(f): price the one-person coverage family separately. + # 2014 statutory rate at 150% FPL = 4%; 17,235 * 0.04 = 689.4. + # Credit = 6,000 - 689.4 = 5,310.6; the minimum remains inactive. + # https://www.govinfo.gov/content/pkg/CFR-2014-title26-vol1/pdf/CFR-2014-title26-vol1-sec1-36B-3.pdf#page=2 + aca_ptc_slcsp: 6_000 + aca_ptc_minimum_premium: 0 + aca_ptc: 5_310.6 From 2351902bd7818e3922067ea12c6aea48b45471b6 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 15 Nov 2026 04:58:23 -0500 Subject: [PATCH 08/14] Read supplied coverage-family benchmarks directly Avoid enrollment and premium calculations when every potential enrollee belongs to the tax family. Retain allocation for families with excluded enrollees. Co-Authored-By: Claude Opus 5.5 --- .../policy/baseline/gov/aca/ptc/aca_ptc.yaml | 18 ++++++++++++++++++ .../variables/gov/aca/slspc/aca_ptc_slcsp.py | 8 +++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml index 620c56e084f..bb18aa90e7f 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml @@ -1806,3 +1806,21 @@ # 1,200 - 25,000 * 0.04 = 200 for both credit variables. aca_ptc_before_filing_gate: 200 aca_ptc: 200 + +- name: A supplied 2014 benchmark needs no enrollment calculation when everyone is in the tax family + period: 2014 + absolute_error_margin: 0.01 + input: + is_aca_tax_family_member: true + is_aca_ptc_eligible: true + slcsp: 12_000 + aca_magi: 30_000 + aca_magi_fraction: 2.5 + filing_status: SINGLE + tax_unit_is_filer: true + output: + # All possible enrollees belong to the coverage family, so its benchmark + # is the supplied 12,000 (26 CFR 1.36B-3(f)). At 250% FPL in 2014: + # 12,000 - 30,000 * 0.0805 = 9,585. + aca_ptc_slcsp: 12_000 + aca_ptc: 9_585 diff --git a/policyengine_us/variables/gov/aca/slspc/aca_ptc_slcsp.py b/policyengine_us/variables/gov/aca/slspc/aca_ptc_slcsp.py index 94e999c8ab7..81d6184e7c0 100644 --- a/policyengine_us/variables/gov/aca/slspc/aca_ptc_slcsp.py +++ b/policyengine_us/variables/gov/aca/slspc/aca_ptc_slcsp.py @@ -62,9 +62,15 @@ class aca_ptc_slcsp(Variable): def formula(tax_unit, period, parameters): person = tax_unit.members - enrolled = person("is_aca_marketplace_enrollee", period.this_year) member = person("is_aca_tax_family_member", period.this_year) + # Every possible enrollee belongs to the coverage family, so a + # supplied benchmark carries through without deriving enrollment. + if member.all(): + return tax_unit("slcsp", period) + enrolled = person("is_aca_marketplace_enrollee", period.this_year) every_enrollee_covered = ~tax_unit.any(enrolled & ~member) + if every_enrollee_covered.all(): + return tax_unit("slcsp", period) coverage_family_benchmark = benchmark_premium( tax_unit, period, parameters, member, enrolled ) From ff06996e062a55f7842629195d68b23bab166ea4 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 15 Nov 2026 05:08:14 -0500 Subject: [PATCH 09/14] Skip Medicaid category calculations when work requirements do not apply Read the existing applicability flags before deriving eligibility categories. Return false when both flags are inactive so historical ACA enrollment does not require later Medicaid categories. Co-Authored-By: Claude Opus 5.5 --- .../is_medicaid_ineligible_due_to_work_requirement.yaml | 9 +++++++++ .../is_medicaid_ineligible_due_to_work_requirement.py | 7 +++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/is_medicaid_ineligible_due_to_work_requirement.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/is_medicaid_ineligible_due_to_work_requirement.yaml index f8f5e23d796..dc7eca0a97b 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/is_medicaid_ineligible_due_to_work_requirement.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/is_medicaid_ineligible_due_to_work_requirement.yaml @@ -64,3 +64,12 @@ output: ar_medicaid_work_requirement_eligible: true is_medicaid_ineligible_due_to_work_requirement: false + +- name: Inactive work requirements need no Medicaid category in 2014 + period: 2014 + input: + age: 40 + state_code: TX + output: + # Both applicability flags are false: False OR False = False. + is_medicaid_ineligible_due_to_work_requirement: false diff --git a/policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_ineligible_due_to_work_requirement.py b/policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_ineligible_due_to_work_requirement.py index efdf2d4a24c..47737c51509 100644 --- a/policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_ineligible_due_to_work_requirement.py +++ b/policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_ineligible_due_to_work_requirement.py @@ -9,13 +9,17 @@ class is_medicaid_ineligible_due_to_work_requirement(Variable): reference = "https://www.congress.gov/bill/119th-congress/house-bill/1/text" def formula(person, period, parameters): + p = parameters(period).gov.hhs.medicaid.eligibility.work_requirements + ar_p = parameters(period).gov.states.ar.dhs.medicaid.work_requirements + if not p.applies and not ar_p.applies: + return False + category = person("medicaid_category", period) federal_medicaid_eligible = ( category != category.possible_values.NONE ) & person("is_medicaid_immigration_status_eligible", period) federal_barred = False - p = parameters(period).gov.hhs.medicaid.eligibility.work_requirements if p.applies: applicable_adult = person( "is_medicaid_work_requirement_applicable_adult", period @@ -30,7 +34,6 @@ def formula(person, period, parameters): ) ar_barred = False - ar_p = parameters(period).gov.states.ar.dhs.medicaid.work_requirements if ar_p.applies: in_ar = person.household("state_code_str", period) == "AR" ar_barred = ( From 03d010e689586c51056640297eef8a6c7dda3501 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 15 Nov 2026 17:53:49 -0500 Subject: [PATCH 10/14] Read coverage-year residence for premium tax credits before 2018 The IRS instructs 2016 and 2017 filers to enter the Form 8962 line 4 amount for their state of residence in the coverage year, using the prior year's poverty lines. Read the state for the coverage year for every coverage year before 2018, so an Alaska or Hawaii household that supplies only its coverage-year state receives its own poverty line. Keep the existing guideline-year lookup from 2018. Co-Authored-By: Claude Fable 5.2 --- .../baseline/gov/aca/eligibility/aca_fpg.yaml | 25 +++++++ .../policy/baseline/gov/aca/ptc/aca_ptc.yaml | 68 +++++++++++++++++++ .../variables/gov/aca/eligibility/aca_fpg.py | 22 +++--- 3 files changed, 107 insertions(+), 8 deletions(-) diff --git a/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml b/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml index 846e8125ba9..e4d11fd0c8b 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml @@ -334,3 +334,28 @@ # Alaska, two people = 14,580 + 5,080 = 19,660. # https://www.irs.gov/pub/irs-prior/i8962--2015.pdf#page=7 aca_fpg: 19_660 + +- name: Coverage in 2016 uses coverage-year residence when the household supplies no earlier state + period: 2016 + input: + aca_tax_family_size: 2 + state_code: AK + output: + # IRS 2016 Form 8962 line 4 uses 2016 residence and the 2015 table: + # Alaska, two people = 14,720 + 5,200 = 19,920. + # https://www.irs.gov/pub/irs-prior/i8962--2016.pdf#page=6 + aca_fpg: 19_920 + +- name: Coverage in 2017 uses current residence with the 2016 guideline + period: 2017 + input: + aca_tax_family_size: 2 + state_code: + 2016: TX + 2017: AK + output: + # IRS 2017 Form 8962 line 4 uses 2017 residence and the 2016 table: + # Alaska, two people = 20,020 (Table 1-2). HHS listed 20,020 for two + # people in 2016, 20 below 14,840 + 5,200. + # https://www.irs.gov/pub/irs-prior/i8962--2017.pdf#page=7 + aca_fpg: 20_020 diff --git a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml index bb18aa90e7f..08b70035add 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml @@ -643,6 +643,74 @@ is_aca_ptc_eligible: true aca_ptc: 3298.174398 +- name: An Alaska adult who supplies only 2016 residence receives the 2016 credit on Alaska's poverty line. + period: 2016 + absolute_error_margin: 0.02 + input: + people: + adult: + age: 40 + pays_aca_premium: true + tax_units: + unit: + members: [adult] + aca_magi: 36800.0 + aca_ptc_below_fpl_immigration_exception: false + filing_status: SINGLE + tax_unit_is_filer: true + households: + household: + members: [adult] + state_code: AK + slcsp_rating_area: 1 + output: + # IRS 2016 Form 8962 line 4 uses 2016 residence and the 2015 table: + # Alaska, one person = 14,720 (Table 1-2). + # https://www.irs.gov/pub/irs-prior/i8962--2016.pdf#page=6 + # Line 5: floor(36,800 / 14,720 * 100) / 100 = 2.50, so the rate is 8.18%. + # Benchmark = 424 * 299 / 481 * 1.6706 * 12 = 5,283.791741. + # Credit = 5,283.791741 - 36,800 * 0.0818 = 5,283.791741 - 3,010.24 + # = 2,273.551741. + aca_fpg: 14_720 + aca_magi_fraction: 2.5 + slcsp: 5283.791741 + is_aca_ptc_eligible: true + aca_ptc: 2273.551741 + +- name: An Alaska adult who supplies only 2017 residence receives the 2017 credit on Alaska's poverty line. + period: 2017 + absolute_error_margin: 0.02 + input: + people: + adult: + age: 40 + pays_aca_premium: true + tax_units: + unit: + members: [adult] + aca_magi: 37100.0 + aca_ptc_below_fpl_immigration_exception: false + filing_status: SINGLE + tax_unit_is_filer: true + households: + household: + members: [adult] + state_code: AK + slcsp_rating_area: 1 + output: + # IRS 2017 Form 8962 line 4 uses 2017 residence and the 2016 table: + # Alaska, one person = 14,840 (Table 1-2). + # https://www.irs.gov/pub/irs-prior/i8962--2017.pdf#page=7 + # Line 5: floor(37,100 / 14,840 * 100) / 100 = 2.50, so the rate is 8.21%. + # Benchmark = 424 * 359 / 481 * 1.6706 * 12 = 6,344.084398. + # Credit = 6,344.084398 - 37,100 * 0.0821 = 6,344.084398 - 3,045.91 + # = 3,298.174398. + aca_fpg: 14_840 + aca_magi_fraction: 2.5 + slcsp: 6344.084398 + is_aca_ptc_eligible: true + aca_ptc: 3298.174398 + - name: Income above 400 percent receives no credit in 2014. period: 2014 input: diff --git a/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py b/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py index f7aa012a941..a467209fc42 100644 --- a/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py +++ b/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py @@ -1,8 +1,10 @@ from policyengine_us.model_api import * -from policyengine_us.tools.parameters import FIRST_MODELED_YEAR from policyengine_us.variables.gov.hhs.tax_unit_fpg import fpg FIRST_PTC_GUIDELINE_YEAR = 2013 +# From this coverage year, the lookup still reads residence in the guideline +# year. +FIRST_GUIDELINE_YEAR_RESIDENCE_YEAR = 2018 class aca_fpg(Variable): @@ -16,16 +18,19 @@ class aca_fpg(Variable): "https://www.govinfo.gov/content/pkg/USCODE-2014-title26/pdf/USCODE-2014-title26-subtitleA-chap1-subchapA-partIV-subpartC-sec36B.pdf#page=4", "https://www.irs.gov/pub/irs-prior/i8962--2014.pdf#page=6", "https://www.irs.gov/pub/irs-prior/i8962--2015.pdf#page=7", + "https://www.irs.gov/pub/irs-prior/i8962--2016.pdf#page=6", + "https://www.irs.gov/pub/irs-prior/i8962--2017.pdf#page=6", # Line 1 (tax family size) and line 4 (poverty line). "https://www.irs.gov/pub/irs-prior/i8962--2025.pdf#page=8", ) documentation = ( "Form 8962 line 4: the prior year's poverty guideline for the tax " "year's tax family size on line 1 (aca_tax_family_size). The 2013 " - "guidelines support coverage from 2014. Coverage in 2014 and 2015 " - "uses residence in the coverage year; later years retain the " - "existing prior-year residence lookup. A return with no tax family " - "uses the whole tax unit's size as a numerical convention." + "guidelines support coverage from 2014. For coverage before 2018, " + "the formula reads residence in the coverage year, as the IRS " + "instructs for line 4; later years retain the existing prior-year " + "residence lookup. A return with no tax family uses the whole tax " + "unit's size as a numerical convention." ) def formula(tax_unit, period, parameters): @@ -36,9 +41,10 @@ def formula(tax_unit, period, parameters): if guideline_period.start.year < FIRST_PTC_GUIDELINE_YEAR: guideline_period = period state_period = guideline_period - if state_period.start.year < FIRST_MODELED_YEAR: - # Form 8962 line 4 uses coverage-year residence. Historical - # households need not supply geography for an earlier year. + if period.start.year < FIRST_GUIDELINE_YEAR_RESIDENCE_YEAR: + # The IRS instructs filers to enter the line 4 amount for their + # state of residence in the coverage year, so a household need + # not supply geography for the year before. state_period = period state_group = tax_unit.household("state_group_str", state_period) year_lag = period.start.year - guideline_period.start.year From aae467d5ae65d4caaf6ecc7dd31cf2a08a6462f3 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 15 Nov 2026 18:12:03 -0500 Subject: [PATCH 11/14] Describe the New York Age 29 factor before 2023 as a methodology choice The factor's first value dates from 2023, and the model backdates it to 2015. State in the family-tier documentation that calculations for 2015 through 2022 apply that value by choice. Co-Authored-By: Claude Fable 5.2 --- .../gov/aca/slspc/slcsp_family_tier_multiplier.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/policyengine_us/variables/gov/aca/slspc/slcsp_family_tier_multiplier.py b/policyengine_us/variables/gov/aca/slspc/slcsp_family_tier_multiplier.py index 9c395e090bd..37287037f62 100644 --- a/policyengine_us/variables/gov/aca/slspc/slcsp_family_tier_multiplier.py +++ b/policyengine_us/variables/gov/aca/slspc/slcsp_family_tier_multiplier.py @@ -55,6 +55,8 @@ def family_tier_multiplier(tax_unit, period, parameters, family_category, enroll adult_count = tax_unit.sum(enrolled & ~dependent_child) extra_adults = max_(adult_count - 2, 0) age_29_multiplier = 1 + # New York's Age 29 factor is first dated 2023, and the model backdates + # it to 2015. No value exists for 2014. if period.start.year >= 2015: age_29_child = enrolled & person("is_aca_ny_age_29_dependent_child", period) age_29_multiplier = where( @@ -74,8 +76,10 @@ class slcsp_family_tier_multiplier(Variable): defined_for = "slcsp_family_tier_applies" documentation = ( "For 2014 benchmark estimates, New York extended dependents use the " - "ordinary child tier without an additional premium factor. " - "From 2015, the calculation applies the New York Age 29 adjustment." + "ordinary child tier without an additional premium factor. As a " + "methodology choice, calculations for 2015 through 2022 apply the " + "New York Age 29 factor first dated 2023, which the model backdates " + "to 2015." ) def formula_2014(tax_unit, period, parameters): From f34b19579254d1544da3abacf7ab76a39d7d42b0 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 15 Nov 2026 18:12:03 -0500 Subject: [PATCH 12/14] Remove repeated premium tax credit test inputs Drop a 2013 case identical to a later one and a 2017 case whose input and assertion the next case repeats. Supply Marketplace enrollment to the property tests only for 2014, which precedes the model's 2015 parameter floor. Co-Authored-By: Claude Fable 5.2 --- ...ired_contribution_percentage_properties.py | 4 ++- .../policy/baseline/gov/aca/ptc/aca_ptc.yaml | 25 ------------------- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py b/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py index d9b13c16eca..5d3ac121dab 100644 --- a/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py +++ b/policyengine_us/tests/core/test_aca_required_contribution_percentage_properties.py @@ -109,8 +109,10 @@ def build(tax_unit_inputs, years): people[person] = { "age": {year: 40 for year in years}, "is_aca_ptc_eligible": {year: True for year in years}, - "is_aca_marketplace_enrollee": {year: True for year in years}, } + if 2014 in years: + # The model cannot derive Marketplace enrollment before 2015. + people[person]["is_aca_marketplace_enrollee"] = {2014: True} tax_units[f"tax_unit_{index}"] = { "members": members, "filing_status": {year: "SINGLE" for year in years}, diff --git a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml index 08b70035add..71b5b53d89c 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/ptc/aca_ptc.yaml @@ -10,18 +10,6 @@ output: aca_ptc: 200 # 1200 - 0.04 * 25000 = 200 -- name: ACA PTC remains zero before coverage began in 2014 - absolute_error_margin: 0.01 - period: 2013 - input: - is_aca_ptc_eligible: true - slcsp: 1_200 - aca_magi: 25_000 - aca_required_contribution_percentage: 0.04 - tax_unit_is_filer: true - output: - aca_ptc: 0 - - name: ACA PTC calculated for 2025 absolute_error_margin: 0.01 period: 2025 @@ -1848,19 +1836,6 @@ aca_ptc: 5272.944 -- name: ACA PTC calculates the historical 2017 credit from supplied premiums - period: 2017 - absolute_error_margin: 0.01 - input: - is_aca_ptc_eligible: true - slcsp: 1_200 - aca_magi: 25_000 - aca_required_contribution_percentage: 0.04 - tax_unit_is_filer: true - output: - # 1,200 - 25,000 * 0.04 = 200; coverage began in 2014. - aca_ptc: 200 - - name: ACA PTC calculates the historical 2017 credit before the filing condition period: 2017 absolute_error_margin: 0.01 From 18c09a91d0cd6e59cd0b4f44219c001037d0bdee Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 10:04:50 -0500 Subject: [PATCH 13/14] Date the territory poverty-line placeholders from 2013 For 2014 and 2015 coverage, aca_fpg reads the poverty guideline at 2013 and 2014 dates. The Guam, Puerto Rico and Virgin Islands placeholders started in 2024, and the model backdates parameters to 2015 only, so the lookup found no value for a household there in those two years. Main reads the backdated zero for 2015. Start the six placeholders in 2013 and keep their 2024 entries, where uprating begins. No value changes from 2015 on. Add a 2015 Guam case and a 2014 Puerto Rico case. Co-Authored-By: Claude Fable 5.2 --- policyengine_us/parameters/gov/hhs/fpg.yaml | 10 ++++++++ .../baseline/gov/aca/eligibility/aca_fpg.yaml | 24 +++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/policyengine_us/parameters/gov/hhs/fpg.yaml b/policyengine_us/parameters/gov/hhs/fpg.yaml index 6b9e0a35f68..3a440cf6ebd 100644 --- a/policyengine_us/parameters/gov/hhs/fpg.yaml +++ b/policyengine_us/parameters/gov/hhs/fpg.yaml @@ -55,11 +55,18 @@ first_person: # Poverty guidelines do not apply to these areas, but we include them for # completeness and to avoid errors arising from uprating and breakdown # metadata fields. + # aca_fpg reads this parameter at 2013 and 2014 dates for 2014 and 2015 + # coverage, so the placeholders start in 2013. Keep the 2024 entries, + # because uprating starts at the last dated value and + # gov.hhs.fpg_uprating has no value before 2022. GU: + 2013-01-01: 0 2024-01-01: 0 PR: + 2013-01-01: 0 2024-01-01: 0 VI: + 2013-01-01: 0 2024-01-01: 0 additional_person: # HHS publishes these amounts for each additional person. In 2016, the @@ -118,10 +125,13 @@ additional_person: 2026-01-01: 6_530 # Add placeholders for Guam, Puerto Rico, and the Virgin Islands. GU: + 2013-01-01: 0 2024-01-01: 0 PR: + 2013-01-01: 0 2024-01-01: 0 VI: + 2013-01-01: 0 2024-01-01: 0 metadata: diff --git a/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml b/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml index e4d11fd0c8b..5b37312ba57 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml @@ -359,3 +359,27 @@ # people in 2016, 20 below 14,840 + 5,200. # https://www.irs.gov/pub/irs-prior/i8962--2017.pdf#page=7 aca_fpg: 20_020 + +- name: A 2015 Guam return reads the zero placeholder at the 2014 guideline date + period: 2015 + input: + aca_tax_family_size: 1 + state_code: GU + output: + # HHS left its 2014 guidelines "not defined for Puerto Rico or other + # outlying jurisdictions" (79 FR 3594), and the guideline parameter holds + # a zero placeholder for Guam: 0 + 0 * (1 - 1) = 0. + # https://www.govinfo.gov/content/pkg/FR-2014-01-22/pdf/2014-01303.pdf#page=2 + aca_fpg: 0 + +- name: A 2014 Puerto Rico return reads the zero placeholder at the 2013 guideline date + period: 2014 + input: + aca_tax_family_size: 2 + state_code: PR + output: + # HHS left its 2013 guidelines "not defined for Puerto Rico or other + # outlying jurisdictions" (78 FR 5183), and the guideline parameter holds + # a zero placeholder for Puerto Rico: 0 + 0 * (2 - 1) = 0. + # https://www.govinfo.gov/content/pkg/FR-2013-01-24/pdf/2013-01422.pdf#page=2 + aca_fpg: 0 From 590ee78cd3c566eaa737dc9f5b2906164d1262f3 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 11:40:47 -0500 Subject: [PATCH 14/14] Return a zero poverty line for territories inside aca_fpg Remove the 2013 zero placeholders for Guam, Puerto Rico and the Virgin Islands from gov.hhs.fpg, so the parameter's territory entries equal main's again. Other formulas read that parameter. For example, with those zeros tanf_non_cash_fpg returned a monthly guideline of zero for a Guam or Virgin Islands unit in 2015, where main raises an error. aca_fpg looks a household in those areas up under the contiguous geography, which has a value at every guideline date, and returns zero for it. A lookup on the area's own geography raises an error at the 2013 and 2014 dates that 2014 and 2015 coverage reads. For coverage from 2016, main's placeholder gives the same zero. Add a 2015 Virgin Islands case and a 2017 Puerto Rico case, and restate the comments on the 2015 Guam and 2014 Puerto Rico cases. Co-Authored-By: Claude Fable 5.2 --- policyengine_us/parameters/gov/hhs/fpg.yaml | 10 ----- .../baseline/gov/aca/eligibility/aca_fpg.yaml | 43 ++++++++++++++++--- .../variables/gov/aca/eligibility/aca_fpg.py | 25 ++++++++++- 3 files changed, 60 insertions(+), 18 deletions(-) diff --git a/policyengine_us/parameters/gov/hhs/fpg.yaml b/policyengine_us/parameters/gov/hhs/fpg.yaml index 3a440cf6ebd..6b9e0a35f68 100644 --- a/policyengine_us/parameters/gov/hhs/fpg.yaml +++ b/policyengine_us/parameters/gov/hhs/fpg.yaml @@ -55,18 +55,11 @@ first_person: # Poverty guidelines do not apply to these areas, but we include them for # completeness and to avoid errors arising from uprating and breakdown # metadata fields. - # aca_fpg reads this parameter at 2013 and 2014 dates for 2014 and 2015 - # coverage, so the placeholders start in 2013. Keep the 2024 entries, - # because uprating starts at the last dated value and - # gov.hhs.fpg_uprating has no value before 2022. GU: - 2013-01-01: 0 2024-01-01: 0 PR: - 2013-01-01: 0 2024-01-01: 0 VI: - 2013-01-01: 0 2024-01-01: 0 additional_person: # HHS publishes these amounts for each additional person. In 2016, the @@ -125,13 +118,10 @@ additional_person: 2026-01-01: 6_530 # Add placeholders for Guam, Puerto Rico, and the Virgin Islands. GU: - 2013-01-01: 0 2024-01-01: 0 PR: - 2013-01-01: 0 2024-01-01: 0 VI: - 2013-01-01: 0 2024-01-01: 0 metadata: diff --git a/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml b/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml index 5b37312ba57..333ad1d5e8a 100644 --- a/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml +++ b/policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_fpg.yaml @@ -360,26 +360,57 @@ # https://www.irs.gov/pub/irs-prior/i8962--2017.pdf#page=7 aca_fpg: 20_020 -- name: A 2015 Guam return reads the zero placeholder at the 2014 guideline date +- name: A 2015 Guam return has a poverty line of zero period: 2015 input: aca_tax_family_size: 1 state_code: GU output: # HHS left its 2014 guidelines "not defined for Puerto Rico or other - # outlying jurisdictions" (79 FR 3594), and the guideline parameter holds - # a zero placeholder for Guam: 0 + 0 * (1 - 1) = 0. + # outlying jurisdictions" (79 FR 3594), and gov.hhs.fpg holds no Guam + # value at the 2014 date. aca_fpg looks Guam up under the 48 states' + # 2014 guideline, 11,670 + 4,060 * (1 - 1) = 11,670, and returns 0. # https://www.govinfo.gov/content/pkg/FR-2014-01-22/pdf/2014-01303.pdf#page=2 aca_fpg: 0 -- name: A 2014 Puerto Rico return reads the zero placeholder at the 2013 guideline date +- name: A 2014 Puerto Rico return has a poverty line of zero period: 2014 input: aca_tax_family_size: 2 state_code: PR output: # HHS left its 2013 guidelines "not defined for Puerto Rico or other - # outlying jurisdictions" (78 FR 5183), and the guideline parameter holds - # a zero placeholder for Puerto Rico: 0 + 0 * (2 - 1) = 0. + # outlying jurisdictions" (78 FR 5183), and gov.hhs.fpg holds no Puerto + # Rico value at the 2013 date. aca_fpg looks Puerto Rico up under the 48 + # states' 2013 guideline, 11,490 + 4,020 * (2 - 1) = 15,510, and + # returns 0. # https://www.govinfo.gov/content/pkg/FR-2013-01-24/pdf/2013-01422.pdf#page=2 aca_fpg: 0 + +- name: A 2015 Virgin Islands return has a poverty line of zero + period: 2015 + input: + aca_tax_family_size: 3 + state_code: VI + output: + # HHS published 2014 guidelines for the 48 states and the District of + # Columbia, Alaska and Hawaii, and left them "not defined for Puerto Rico + # or other outlying jurisdictions" (79 FR 3594). aca_fpg looks the Virgin + # Islands up under the 48 states' 2014 guideline, + # 11,670 + 4,060 * (3 - 1) = 19,790, and returns 0. + # https://www.govinfo.gov/content/pkg/FR-2014-01-22/pdf/2014-01303.pdf#page=2 + aca_fpg: 0 + +- name: A 2017 Puerto Rico return has a poverty line of zero + period: 2017 + input: + aca_tax_family_size: 2 + state_code: PR + output: + # HHS left its 2016 guidelines "not defined for Puerto Rico or other + # outlying jurisdictions" (81 FR 4037). aca_fpg looks Puerto Rico up + # under the 48 states' 2016 table, 16,020 for two people, and returns 0. + # The Puerto Rico placeholders in gov.hhs.fpg, which the model backdates + # to 2015, give the same result: 0 + 0 * (2 - 1) = 0. + # https://www.govinfo.gov/content/pkg/FR-2016-01-25/pdf/2016-01450.pdf#page=2 + aca_fpg: 0 diff --git a/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py b/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py index a399661a2fb..a08c56d3ead 100644 --- a/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py +++ b/policyengine_us/variables/gov/aca/eligibility/aca_fpg.py @@ -2,6 +2,10 @@ from policyengine_us.variables.gov.hhs.tax_unit_fpg import fpg FIRST_PTC_GUIDELINE_YEAR = 2013 +# The names state_group_str gives Guam, Puerto Rico and the Virgin Islands, +# and the 48 contiguous states with the District of Columbia. +STATE_GROUPS_WITHOUT_GUIDELINE = ["GU", "PR", "VI"] +CONTIGUOUS_STATE_GROUP = "CONTIGUOUS_US" class aca_fpg(Variable): @@ -21,6 +25,10 @@ class aca_fpg(Variable): # residence). "https://www.irs.gov/pub/irs-prior/i8962--2025.pdf#page=8", "https://www.law.cornell.edu/cfr/text/26/1.36B-1#h", + # HHS defines no guideline for Puerto Rico or other outlying + # jurisdictions (78 FR 5183, 79 FR 3594). + "https://www.govinfo.gov/content/pkg/FR-2013-01-24/pdf/2013-01422.pdf#page=2", + "https://www.govinfo.gov/content/pkg/FR-2014-01-22/pdf/2014-01303.pdf#page=2", ) documentation = ( "Form 8962 line 4: the prior year's poverty guideline for the tax " @@ -31,7 +39,9 @@ class aca_fpg(Variable): "numerical convention, not a legal rule, it keeps the guideline for " "the whole tax unit. The credit starts in 2014; for an earlier tax " "year the formula applies no lag and reads the guideline parameter " - "at the tax year's own date." + "at the tax year's own date. HHS defines no guideline for Guam, " + "Puerto Rico or the Virgin Islands, so the formula returns zero for " + "a household there in every year." ) def formula(tax_unit, period, parameters): @@ -53,4 +63,15 @@ def formula(tax_unit, period, parameters): # different states; the model has one household state a year and # uses the first member's household. state_group = tax_unit.household("state_group_str", period) - return fpg(size, state_group, guideline_period, parameters) + # HHS defines no guideline for Guam, Puerto Rico or the Virgin + # Islands, so this formula returns zero for them in every year. + # gov.hhs.fpg holds zero placeholders for them, which the model + # backdates only to 2015, so a lookup on their own geography raises + # an error at the 2013 and 2014 dates that 2014 and 2015 coverage + # reads. Selecting zero after that lookup would still raise it. Look + # those households up under the contiguous geography, which has a + # value at every guideline date, then return zero for them. + has_no_guideline = np.isin(state_group, STATE_GROUPS_WITHOUT_GUIDELINE) + lookup_group = where(has_no_guideline, CONTIGUOUS_STATE_GROUP, state_group) + guideline = fpg(size, lookup_group, guideline_period, parameters) + return where(has_no_guideline, 0, guideline)