policyengine-us 1.439.0__py3-none-any.whl → 1.458.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- policyengine_us/parameters/calibration/gov/hhs/medicare/per_capita_cost.yaml +12 -0
- policyengine_us/parameters/gov/contrib/states/de/dependent_credit/age_limit/in_effect.yaml +9 -0
- policyengine_us/parameters/gov/contrib/states/de/dependent_credit/age_limit/threshold.yaml +9 -0
- policyengine_us/parameters/gov/contrib/states/de/dependent_credit/amount.yaml +9 -0
- policyengine_us/parameters/gov/contrib/states/de/dependent_credit/in_effect.yaml +9 -0
- policyengine_us/parameters/gov/contrib/states/de/dependent_credit/phaseout/rate.yaml +9 -0
- policyengine_us/parameters/gov/contrib/states/de/dependent_credit/phaseout/threshold.yaml +23 -0
- policyengine_us/parameters/gov/contrib/states/ut/eitc/in_effect.yaml +9 -0
- policyengine_us/parameters/gov/contrib/states/ut/eitc/max_age.yaml +9 -0
- policyengine_us/parameters/gov/hhs/medicaid/eligibility/categories/medically_needy/categories/child/child.yaml +0 -1
- policyengine_us/parameters/gov/hhs/medicare/part_a/deductible.yaml +13 -0
- policyengine_us/parameters/gov/hhs/medicare/part_a/default_quarters_of_coverage.yaml +10 -0
- policyengine_us/parameters/gov/hhs/medicare/part_a/full_premium.yaml +13 -0
- policyengine_us/parameters/gov/hhs/medicare/part_a/premium_free_quarters_threshold.yaml +10 -0
- policyengine_us/parameters/gov/hhs/medicare/part_a/reduced_premium.yaml +13 -0
- policyengine_us/parameters/gov/hhs/medicare/part_a/reduced_premium_quarters_threshold.yaml +10 -0
- policyengine_us/parameters/gov/hhs/medicare/part_b/base_premium.yaml +16 -0
- policyengine_us/parameters/gov/hhs/medicare/part_b/irmaa/head_of_household.yaml +50 -0
- policyengine_us/parameters/gov/hhs/medicare/part_b/irmaa/joint.yaml +49 -0
- policyengine_us/parameters/gov/hhs/medicare/part_b/irmaa/separate.yaml +30 -0
- policyengine_us/parameters/gov/hhs/medicare/part_b/irmaa/single.yaml +50 -0
- policyengine_us/parameters/gov/hhs/medicare/part_b/irmaa/surviving_spouse.yaml +49 -0
- policyengine_us/parameters/gov/irs/credits/cdcc/eligibility/child_age.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/clean_vehicle/new/eligibility/min_kwh.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/clean_vehicle/used/eligibility/sale_price_limit.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/education/american_opportunity_credit/abolition.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/education/american_opportunity_credit/refundability.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/education/lifetime_learning_credit/abolition.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/education/lifetime_learning_credit/expense_limit.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/annual/advanced_main_air_circulating_fan.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/annual/door.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/annual/energy_efficient_central_air_conditioner.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/annual/heat_pump_heat_pump_water_heater_biomass_stove_boiler.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/annual/home_energy_audit.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/annual/qualified_furnace_or_hot_water_boiler.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/annual/roof.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/annual/total.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/annual/window.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/lifetime/total.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/cap/lifetime/window.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/in_effect.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/qualified_expenditures/credits.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/qualified_expenditures/heat_pump_heat_pump_water_heater_biomass_stove_boiler.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/rates/home_energy_audit.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/rates/improvements.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/energy_efficient_home_improvement/rates/property.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/premium_tax_credit/phase_out/ending_rate.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/premium_tax_credit/phase_out/starting_rate.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/arpa/max/adult.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/arpa/max/dependent.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/arpa/phase_out/length.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/arpa/phase_out/threshold.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/caa/max/adult.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/caa/max/child.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/caa/phase_out/rate.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/caa/phase_out/threshold.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/cares/max/adult.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/cares/max/child.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/cares/phase_out/rate.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/recovery_rebate_credit/cares/phase_out/threshold.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/residential_clean_energy/applicable_percentage.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/residential_clean_energy/elements.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/residential_clean_energy/fuel_cell_cap_per_kw.yaml +0 -1
- policyengine_us/parameters/gov/irs/deductions/qbi/max/reit_ptp_rate.yaml +13 -0
- policyengine_us/parameters/gov/irs/deductions/standard/aged_or_blind/age_threshold.yaml +0 -1
- policyengine_us/parameters/gov/irs/payroll/medicare/additional/exclusion.yaml +0 -1
- policyengine_us/parameters/gov/local/ny/mamdani_income_tax/in_effect.yaml +10 -0
- policyengine_us/parameters/gov/local/ny/mamdani_income_tax/rate.yaml +18 -0
- policyengine_us/parameters/gov/states/ar/tax/income/rates/main/reduction.yaml +30 -0
- policyengine_us/parameters/gov/states/ca/chhs/medi_cal_enrollment_freeze/in_effect.yaml +12 -0
- policyengine_us/parameters/gov/states/co/tax/income/credits/care_worker/amount/{single.yaml → non_joint.yaml} +2 -2
- policyengine_us/parameters/gov/states/co/tax/income/credits/care_worker/income_limit/{single.yaml → non_joint.yaml} +2 -2
- policyengine_us/parameters/gov/states/il/dhs/aabd/{qualified_noncitizen_status.yaml → qualified_noncitizen_statuses.yaml} +3 -5
- policyengine_us/parameters/gov/states/il/dhs/tanf/{qualified_noncitizen_status.yaml → qualified_noncitizen_statuses.yaml} +2 -2
- policyengine_us/parameters/gov/states/il/hfs/README.md +1 -0
- policyengine_us/parameters/gov/states/il/hfs/bcc/eligibility/age.yaml +12 -0
- policyengine_us/parameters/gov/states/il/hfs/fpp/eligibility/household_size.yaml +14 -0
- policyengine_us/parameters/gov/states/il/hfs/fpp/eligibility/income_limit.yaml +15 -0
- policyengine_us/parameters/gov/states/il/hfs/hbwd/README.md +1 -0
- policyengine_us/parameters/gov/states/il/hfs/hbwd/eligibility/age.yaml +25 -0
- policyengine_us/parameters/gov/states/il/hfs/hbwd/eligibility/asset/limit.yaml +15 -0
- policyengine_us/parameters/gov/states/il/hfs/hbwd/eligibility/income/limit.yaml +15 -0
- policyengine_us/parameters/gov/states/il/hfs/hbwd/eligibility/income/sources/earned.yaml +13 -0
- policyengine_us/parameters/gov/states/il/hfs/hbwd/eligibility/income/sources/unearned.yaml +25 -0
- policyengine_us/parameters/gov/states/il/hfs/hbwd/premium/earned.yaml +96 -0
- policyengine_us/parameters/gov/states/il/hfs/hbwd/premium/unearned.yaml +96 -0
- policyengine_us/parameters/gov/states/il/hfs/mpe/eligibility/income_limit.yaml +13 -0
- policyengine_us/parameters/gov/states/il/hfs/qualified_noncitizen_statuses.yaml +17 -0
- policyengine_us/parameters/gov/states/mt/tax/income/deductions/itemized/spouse_allocation_rate.yaml +13 -0
- policyengine_us/parameters/gov/states/nj/tax/income/additions.yaml +12 -0
- policyengine_us/parameters/gov/states/nj/tax/income/gross_income_sources.yaml +32 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/at_home_parent/amount.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/at_home_parent/max_agi.yaml +6 -2
- policyengine_us/parameters/gov/states/ut/tax/income/credits/at_home_parent/max_child_age.yaml +6 -2
- policyengine_us/parameters/gov/states/ut/tax/income/credits/at_home_parent/parent_max_earnings.yaml +6 -2
- policyengine_us/parameters/gov/states/ut/tax/income/credits/ctc/amount.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/ctc/child_age_threshold.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/ctc/reduction/rate.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/ctc/reduction/start.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/earned_income/rate.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/military_retirement/rate.yaml +26 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/non_refundable.yaml +5 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/retirement/birth_year.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/retirement/max.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/retirement/phase_out/rate.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/retirement/phase_out/threshold.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/ss_benefits/phase_out/rate.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/ss_benefits/phase_out/threshold.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/taxpayer/in_effect.yaml +2 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/taxpayer/personal_exemption.yaml +5 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/taxpayer/phase_out/rate.yaml +5 -1
- policyengine_us/parameters/gov/states/ut/tax/income/credits/taxpayer/phase_out/threshold.yaml +9 -0
- policyengine_us/parameters/gov/states/ut/tax/income/credits/taxpayer/rate.yaml +4 -0
- policyengine_us/parameters/gov/states/ut/tax/income/rate.yaml +3 -0
- policyengine_us/parameters/gov/states/wa/dshs/tanf/income/deductions/earned_income_disregard/amount.yaml +14 -0
- policyengine_us/parameters/gov/states/wa/dshs/tanf/income/deductions/earned_income_disregard/percentage_disregarded.yaml +14 -0
- policyengine_us/parameters/gov/states/wa/dshs/tanf/income/limit.yaml +36 -0
- policyengine_us/parameters/gov/states/wa/dshs/tanf/maximum_family_size.yaml +14 -0
- policyengine_us/parameters/gov/states/wa/dshs/tanf/payment_standard/amount.yaml +32 -0
- policyengine_us/parameters/gov/states/wa/dshs/tanf/payment_standard/maximum_amount.yaml +12 -0
- policyengine_us/parameters/gov/states/wa/dshs/tanf/resource_limit.yaml +15 -0
- policyengine_us/parameters/gov/territories/pr/tax/income/gradual_adjustment/adjustment_limit_basis.yaml +12 -0
- policyengine_us/parameters/gov/territories/pr/tax/income/gradual_adjustment/exemption_rate.yaml +13 -0
- policyengine_us/parameters/gov/territories/pr/tax/income/gradual_adjustment/rate.yaml +12 -0
- policyengine_us/parameters/gov/territories/pr/tax/income/gradual_adjustment/threshold.yaml +13 -0
- policyengine_us/parameters/gov/territories/pr/tax/income/regular_tax/percentage.yaml +21 -0
- policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/deductions/sources.yaml +18 -0
- policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/exemptions/sources.yaml +15 -0
- policyengine_us/parameters/gov/usda/snap/student/child_age_limit/single_parent.yaml +12 -0
- policyengine_us/parameters/gov/usda/snap/student/child_age_limit/two_parent.yaml +12 -0
- policyengine_us/parameters/simulation/disabled_programs.yaml +0 -1
- policyengine_us/reforms/local/ny/__init__.py +4 -0
- policyengine_us/reforms/local/ny/mamdani_income_tax.py +84 -0
- policyengine_us/reforms/reforms.py +21 -0
- policyengine_us/reforms/state_dependent_exemptions/repeal_state_dependent_exemptions.py +1 -1
- policyengine_us/reforms/states/de/__init__.py +3 -0
- policyengine_us/reforms/states/de/dependent_credit/de_dependent_credit_reform.py +165 -0
- policyengine_us/reforms/states/ut/__init__.py +3 -0
- policyengine_us/reforms/states/ut/ut_refundable_eitc.py +118 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicaid/medicaid_enrolled.yaml +105 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicare/costs/medicare_cost.yaml +65 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/base_part_a_premium.yaml +35 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/base_part_b_premium.yaml +15 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/income_adjusted_part_b_premium.yaml +77 -0
- policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/qbid/qbid_amount.yaml +75 -3
- policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/alternative_minimum_tax/exemption/amt_exemption.yaml +68 -0
- policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/alternative_minimum_tax/integration.yaml +26 -0
- policyengine_us/tests/policy/baseline/gov/local/ca/la/general_relief/eligible/immigration/la_general_relief_immigration_status_eligible_person.yaml +2 -2
- policyengine_us/tests/policy/baseline/gov/states/ar/tax/income/integration.yaml +35 -0
- policyengine_us/tests/policy/baseline/gov/states/ca/chhs/is_ca_medicaid_immigration_status_eligible.yaml +59 -5
- policyengine_us/tests/policy/baseline/gov/states/co/tax/income/additions/federal_deduction/co_federal_deduction_addback.yaml +2 -2
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/eligibility/il_tanf_immigration_status_eligible_person.yaml +2 -10
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/bcc/eligibility/il_bcc_age_eligible.yaml +39 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/bcc/eligibility/il_bcc_eligible.yaml +95 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/bcc/eligibility/il_bcc_insurance_eligible.yaml +35 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/fpp/il_fpp_income_eligible.yaml +35 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/fpp/il_fpp_income_level.yaml +27 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/fpp/integration.yaml +116 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/asset/il_hbwd_countable_assets.yaml +23 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/eligibility/il_hbwd_age_eligible.yaml +39 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/eligibility/il_hbwd_asset_eligible.yaml +31 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/eligibility/il_hbwd_disability_eligible.yaml +35 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/eligibility/il_hbwd_eligible.yaml +65 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/eligibility/il_hbwd_employment_eligible.yaml +34 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/eligibility/il_hbwd_income_eligible.yaml +25 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/il_hbwd_person.yaml +34 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/il_hbwd_premium.yaml +84 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/integration.yaml +183 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/il_hfs_immigration_status_eligible.yaml +47 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/mpe/il_mpe_eligible.yaml +39 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/mpe/il_mpe_income_eligible.yaml +23 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/mpe/integration.yaml +138 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/smib/eligibility/il_smib_eligible.yaml +88 -0
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/smib/integration.yaml +73 -0
- policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/credits/family_size_tax_credit/ky_family_size_tax_credit_rate.yaml +8 -8
- policyengine_us/tests/policy/baseline/gov/states/ma/dta/ssp/ma_state_supplement.yaml +2 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/tax/income/deductions/mo_federal_income_tax_deduction.yaml +2 -14
- policyengine_us/tests/policy/baseline/gov/states/mo/tax/income/deductions/mo_pension_and_ss_or_ssd_deduction/mo_pension_and_ss_or_ssd_deduction_section_a.yaml +2 -2
- policyengine_us/tests/policy/baseline/gov/states/mo/tax/income/deductions/mo_pension_and_ss_or_ssd_deduction/mo_pension_and_ss_or_ssd_deduction_section_b.yaml +1 -1
- policyengine_us/tests/policy/baseline/gov/states/mo/tax/income/deductions/mo_pension_and_ss_or_ssd_deduction/mo_pension_and_ss_or_ssd_deduction_section_c.yaml +1 -1
- policyengine_us/tests/policy/baseline/gov/states/nc/tax/income/deductions/nc_itemized_deductions.yaml +2 -2
- policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/eitc/nj_eitc.yaml +8 -3
- policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/integration.yaml +137 -0
- policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/taxable_income/nj_agi.yaml +7 -8
- policyengine_us/tests/policy/baseline/gov/states/oh/tax/income/credits/joint_filing_credit/oh_joint_filing_credit_qualifying_income.yaml +29 -0
- policyengine_us/tests/policy/baseline/gov/states/oh/tax/income/integration.yaml +82 -0
- policyengine_us/tests/policy/baseline/gov/states/tx/tanf/assistance_unit/tx_tanf_categorically_eligible_person.yaml +1 -1
- policyengine_us/tests/policy/baseline/gov/states/ut/tax/income/credits/military_retirement_credit/ut_military_retirement_credit.yaml +89 -0
- policyengine_us/tests/policy/baseline/gov/states/ut/tax/income/credits/military_retirement_credit/ut_military_retirement_credit_eligible.yaml +50 -0
- policyengine_us/tests/policy/baseline/gov/states/ut/tax/income/credits/ss_benefits_credit/ut_ss_benefits_credit_max.yaml +5 -5
- policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/benefit/wa_tanf_payment_standard.yaml +48 -0
- policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/eligibility/wa_tanf_eligible.yaml +65 -0
- policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/eligibility/wa_tanf_income_eligible.yaml +96 -0
- policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/income/wa_tanf_countable_earned_income.yaml +70 -0
- policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/integration.yaml +676 -0
- policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/wa_tanf.yaml +102 -0
- policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/wa_tanf_resources_eligible.yaml +6 -7
- policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit_fpg.yaml +10 -6
- policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/gradual_adjustment/pr_gradual_adjustment_amount.yaml +29 -0
- policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/gradual_adjustment/pr_gradual_adjustment_eligible.yaml +15 -0
- policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/pr_agi.yaml +17 -0
- policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/pr_agi_person.yaml +17 -0
- policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/pr_tax_before_credits.yaml +19 -0
- policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/taxable_income/pr_net_taxable_income.yaml +26 -0
- policyengine_us/tests/policy/baseline/gov/usda/snap/eligibility/student/is_snap_higher_ed_student.yaml +23 -0
- policyengine_us/tests/policy/baseline/gov/usda/snap/eligibility/student/is_snap_ineligible_student.yaml +75 -4
- policyengine_us/tests/policy/baseline/gov/usda/snap/eligibility/student/meets_snap_parent_exception.yaml +345 -0
- policyengine_us/tests/policy/baseline/gov/usda/snap/eligibility/student/meets_snap_work_exception.yaml +47 -0
- policyengine_us/tests/policy/baseline/gov/usda/snap/income/federal_work_study_income_exclusion.yaml +24 -0
- policyengine_us/tests/policy/baseline/gov/usda/snap/income/snap_countable_earner.yaml +25 -0
- policyengine_us/tests/policy/baseline/gov/usda/snap/snap_min_allotment.yaml +3 -3
- policyengine_us/tests/policy/baseline/gov/usda/wic/integration.yaml +181 -0
- policyengine_us/tests/policy/baseline/gov/usda/wic/is_wic_at_nutritional_risk.yaml +33 -0
- policyengine_us/tests/policy/baseline/gov/usda/wic/is_wic_eligible.yaml +28 -15
- policyengine_us/tests/policy/baseline/household/demographic/geographic/state_group.yaml +21 -0
- policyengine_us/tests/policy/baseline/household/expense/health/has_bcc_qualifying_coverage.yaml +12 -0
- policyengine_us/tests/policy/contrib/local/ny/nyc_mamdani_income_tax.yaml +51 -0
- policyengine_us/tests/policy/contrib/state_dependent_exemptions/repeal_state_dependent_exemptions.yaml +25 -1
- policyengine_us/tests/policy/contrib/states/de/dependent_credit_reform_test.yaml +210 -0
- policyengine_us/tests/policy/contrib/states/ut/ut_refundable_eitc.yaml +214 -0
- policyengine_us/variables/gov/ed/is_federal_work_study_participant.py +9 -0
- policyengine_us/variables/gov/hhs/medicaid/costs/medicaid_group.py +2 -2
- policyengine_us/variables/gov/hhs/medicaid/receives_medicaid.py +17 -0
- policyengine_us/variables/gov/hhs/medicare/costs/medicare_cost.py +30 -0
- policyengine_us/variables/gov/hhs/medicare/costs/medicare_enrolled.py +14 -0
- policyengine_us/variables/gov/hhs/medicare/eligibility/part_a/base_part_a_premium.py +32 -0
- policyengine_us/variables/gov/hhs/medicare/eligibility/part_a/is_premium_free_part_a.py +22 -0
- policyengine_us/variables/gov/hhs/medicare/eligibility/part_a/medicare_quarters_of_coverage.py +16 -0
- policyengine_us/variables/gov/hhs/medicare/eligibility/part_b/base_part_b_premium.py +16 -0
- policyengine_us/variables/gov/hhs/medicare/eligibility/part_b/income_adjusted_part_b_premium.py +55 -0
- policyengine_us/variables/gov/irs/income/taxable_income/deductions/qualified_business_income_deduction/qbid_amount.py +16 -6
- policyengine_us/variables/gov/irs/tax/federal_income/alternative_minimum_tax/exemption/amt_exemption.py +47 -0
- policyengine_us/variables/gov/irs/tax/federal_income/alternative_minimum_tax/income/amt_income_less_exemptions.py +4 -22
- policyengine_us/variables/gov/states/ca/chhs/is_ca_medicaid_immigration_status_eligible.py +25 -4
- policyengine_us/variables/gov/states/ca/tax/income/alternative_minimum_tax/exemption/ca_amt_exemption.py +4 -2
- policyengine_us/variables/gov/states/ca/tax/income/ca_income_tax.py +1 -0
- policyengine_us/variables/gov/states/co/tax/income/credits/care_worker/co_care_worker_credit.py +1 -1
- policyengine_us/variables/gov/states/co/tax/income/credits/care_worker/co_care_worker_credit_eligible.py +1 -1
- policyengine_us/variables/gov/states/il/dhs/aabd/eligibility/il_aabd_immigration_status_eligible_person.py +1 -1
- policyengine_us/variables/gov/states/il/dhs/tanf/eligibility/il_tanf_immigration_status_eligible_person.py +1 -1
- policyengine_us/variables/gov/states/il/hfs/bcc/eligibility/il_bcc_age_eligible.py +15 -0
- policyengine_us/variables/gov/states/il/hfs/bcc/eligibility/il_bcc_eligible.py +27 -0
- policyengine_us/variables/gov/states/il/hfs/bcc/eligibility/il_bcc_insurance_eligible.py +29 -0
- policyengine_us/variables/gov/states/il/hfs/fpp/eligibility/il_fpp_eligible.py +40 -0
- policyengine_us/variables/gov/states/il/hfs/fpp/eligibility/il_fpp_income_eligible.py +18 -0
- policyengine_us/variables/gov/states/il/hfs/fpp/il_fpp_income_level.py +29 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/asset/il_hbwd_countable_assets.py +34 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/eligibility/il_hbwd_age_eligible.py +20 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/eligibility/il_hbwd_asset_eligible.py +21 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/eligibility/il_hbwd_disability_eligible.py +20 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/eligibility/il_hbwd_eligible.py +33 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/eligibility/il_hbwd_employment_eligible.py +25 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/eligibility/il_hbwd_income_eligible.py +23 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/il_hbwd.py +17 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/il_hbwd_person.py +24 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/il_hbwd_premium.py +23 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/income/earned/il_hbwd_countable_earned_income.py +24 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/income/earned/il_hbwd_gross_earned_income.py +16 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/income/il_hbwd_countable_income.py +21 -0
- policyengine_us/variables/gov/states/il/hfs/hbwd/income/unearned/il_hbwd_countable_unearned_income.py +16 -0
- policyengine_us/variables/gov/states/il/hfs/il_hfs_immigration_status_eligible.py +23 -0
- policyengine_us/variables/gov/states/il/hfs/mpe/eligibility/il_mpe_income_eligible.py +15 -0
- policyengine_us/variables/gov/states/il/hfs/mpe/il_mpe_eligible.py +15 -0
- policyengine_us/variables/gov/states/il/hfs/smib/eligibility/il_smib_categorical_eligible.py +26 -0
- policyengine_us/variables/gov/states/il/hfs/smib/eligibility/il_smib_eligible.py +28 -0
- policyengine_us/variables/gov/states/il/hfs/smib/il_smib.py +21 -0
- policyengine_us/variables/gov/states/il/hfs/smib/il_smib_person.py +24 -0
- policyengine_us/variables/gov/states/ky/tax/income/credits/family_size_credit/ky_family_size_tax_credit_rate.py +1 -1
- policyengine_us/variables/gov/states/ma/dta/ssp/ma_state_supplement.py +1 -0
- policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/general/mt_itemized_deductions_indiv.py +3 -2
- policyengine_us/variables/gov/states/nj/tax/income/adjusted_gross_income/nj_additions.py +8 -3
- policyengine_us/variables/gov/states/nj/tax/income/adjusted_gross_income/nj_gross_income.py +17 -0
- policyengine_us/variables/gov/states/nj/tax/income/adjusted_gross_income/nj_total_income.py +12 -6
- policyengine_us/variables/gov/states/nj/tax/income/credits/eitc/nj_eitc.py +7 -1
- policyengine_us/variables/gov/states/oh/tax/income/credits/joint_filing_credit/oh_joint_filing_credit_qualifying_income.py +7 -3
- policyengine_us/variables/gov/states/ut/tax/income/credits/military_retirement_credit/ut_military_retirement_credit.py +20 -0
- policyengine_us/variables/gov/states/ut/tax/income/credits/military_retirement_credit/ut_military_retirement_credit_eligible.py +22 -0
- policyengine_us/variables/gov/states/wa/dshs/tanf/benefit/wa_tanf_payment_standard.py +22 -0
- policyengine_us/variables/gov/states/wa/dshs/tanf/eligibility/wa_tanf_eligible.py +42 -0
- policyengine_us/variables/gov/states/wa/dshs/tanf/eligibility/wa_tanf_income_eligible.py +31 -0
- policyengine_us/variables/gov/states/wa/dshs/tanf/income/wa_tanf_countable_earned_income.py +33 -0
- policyengine_us/variables/gov/states/wa/dshs/tanf/income/wa_tanf_countable_income.py +16 -0
- policyengine_us/variables/gov/states/wa/dshs/tanf/wa_tanf.py +34 -0
- policyengine_us/variables/gov/states/wa/dshs/tanf/wa_tanf_resources_eligible.py +3 -2
- policyengine_us/variables/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit_fpg.py +1 -1
- policyengine_us/variables/gov/territories/pr/tax/income/gradual_adjustment/pr_gradual_adjustment_amount.py +23 -0
- policyengine_us/variables/gov/territories/pr/tax/income/gradual_adjustment/pr_gradual_adjustment_eligible.py +16 -0
- policyengine_us/variables/gov/territories/pr/tax/income/pr_agi.py +11 -1
- policyengine_us/variables/gov/territories/pr/tax/income/pr_agi_person.py +11 -1
- policyengine_us/variables/gov/territories/pr/tax/income/pr_regular_tax_before_credits.py +9 -0
- policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/pr_deductions.py +13 -0
- policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/exemptions/pr_exemptions.py +13 -0
- policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/pr_net_taxable_income.py +6 -0
- policyengine_us/variables/gov/usda/snap/eligibility/student/is_snap_higher_ed_student.py +17 -0
- policyengine_us/variables/gov/usda/snap/eligibility/student/is_snap_ineligible_student.py +47 -15
- policyengine_us/variables/gov/usda/snap/eligibility/student/meets_snap_parent_exception.py +42 -0
- policyengine_us/variables/gov/usda/snap/eligibility/student/meets_snap_work_exception.py +22 -0
- policyengine_us/variables/gov/usda/snap/income/snap_countable_earner.py +13 -2
- policyengine_us/variables/gov/usda/wic/is_wic_at_nutritional_risk.py +3 -10
- policyengine_us/variables/gov/usda/wic/is_wic_eligible.py +10 -1
- policyengine_us/variables/household/demographic/geographic/state_group.py +8 -5
- policyengine_us/variables/household/demographic/person/is_part_time_college_student.py +9 -0
- policyengine_us/variables/household/expense/health/has_bcc_qualifying_coverage.py +16 -0
- policyengine_us/variables/household/income/person/dividends/qualified_reit_and_ptp_income.py +1 -1
- policyengine_us/variables/household/income/spm_unit/spm_unit_tenure_type.py +17 -0
- {policyengine_us-1.439.0.dist-info → policyengine_us-1.458.0.dist-info}/METADATA +2 -2
- {policyengine_us-1.439.0.dist-info → policyengine_us-1.458.0.dist-info}/RECORD +312 -138
- {policyengine_us-1.439.0.dist-info → policyengine_us-1.458.0.dist-info}/WHEEL +1 -1
- policyengine_us/parameters/gov/states/wa/dshs/tanf/eligibility/resources/limit.yaml +0 -11
- policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/integation.yaml +0 -57
- /policyengine_us/variables/gov/states/co/ssa/{state_suplement → state_supplement}/co_state_supplement.py +0 -0
- /policyengine_us/variables/gov/states/co/ssa/{state_suplement → state_supplement}/co_state_supplement_eligible.py +0 -0
- {policyengine_us-1.439.0.dist-info → policyengine_us-1.458.0.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.439.0.dist-info → policyengine_us-1.458.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class medicare_enrolled(Variable):
|
|
5
|
+
value_type = bool
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Medicare enrolled"
|
|
8
|
+
documentation = (
|
|
9
|
+
"Whether the person is enrolled in Medicare (Part A and/or Part B)"
|
|
10
|
+
)
|
|
11
|
+
definition_period = YEAR
|
|
12
|
+
reference = "https://www.cms.gov/medicare"
|
|
13
|
+
defined_for = "is_medicare_eligible"
|
|
14
|
+
default_value = True # Most Medicare-eligible people are enrolled
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class base_part_a_premium(Variable):
|
|
5
|
+
value_type = float
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Medicare Part A Base Premium"
|
|
8
|
+
unit = USD
|
|
9
|
+
documentation = (
|
|
10
|
+
"Annual Medicare Part A premium. Most people (99%) qualify for "
|
|
11
|
+
"premium-free Part A with 40+ quarters of Medicare-covered employment. "
|
|
12
|
+
"Those with 30-39 quarters pay a reduced premium, and those with "
|
|
13
|
+
"fewer than 30 quarters pay the full premium."
|
|
14
|
+
)
|
|
15
|
+
definition_period = YEAR
|
|
16
|
+
reference = "https://www.cms.gov/newsroom/fact-sheets/2025-medicare-parts-b-premiums-and-deductibles"
|
|
17
|
+
defined_for = "is_medicare_eligible"
|
|
18
|
+
|
|
19
|
+
def formula(person, period, parameters):
|
|
20
|
+
p = parameters(period).gov.hhs.medicare.part_a
|
|
21
|
+
quarters_covered = person("medicare_quarters_of_coverage", period)
|
|
22
|
+
|
|
23
|
+
premium_free_part_a = person("is_premium_free_part_a", period)
|
|
24
|
+
quarters_above_reduced_premium_threshold = (
|
|
25
|
+
quarters_covered >= p.reduced_premium_quarters_threshold
|
|
26
|
+
)
|
|
27
|
+
premium_amount = where(
|
|
28
|
+
quarters_above_reduced_premium_threshold,
|
|
29
|
+
p.reduced_premium,
|
|
30
|
+
p.full_premium,
|
|
31
|
+
)
|
|
32
|
+
return where(premium_free_part_a, 0, premium_amount) * MONTHS_IN_YEAR
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class is_premium_free_part_a(Variable):
|
|
5
|
+
value_type = bool
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Qualifies for premium-free Part A"
|
|
8
|
+
documentation = (
|
|
9
|
+
"Whether the person qualifies for premium-free Medicare Part A "
|
|
10
|
+
"based on having 40 or more quarters of Medicare-covered employment. "
|
|
11
|
+
"Approximately 99% of Medicare beneficiaries qualify for premium-free Part A."
|
|
12
|
+
)
|
|
13
|
+
definition_period = YEAR
|
|
14
|
+
reference = (
|
|
15
|
+
"https://www.medicare.gov/basics/costs/medicare-costs/part-a-costs"
|
|
16
|
+
)
|
|
17
|
+
defined_for = "is_medicare_eligible"
|
|
18
|
+
|
|
19
|
+
def formula(person, period, parameters):
|
|
20
|
+
p = parameters(period).gov.hhs.medicare.part_a
|
|
21
|
+
quarters = person("medicare_quarters_of_coverage", period)
|
|
22
|
+
return quarters >= p.premium_free_quarters_threshold
|
policyengine_us/variables/gov/hhs/medicare/eligibility/part_a/medicare_quarters_of_coverage.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class medicare_quarters_of_coverage(Variable):
|
|
5
|
+
value_type = int
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Medicare quarters of coverage"
|
|
8
|
+
documentation = (
|
|
9
|
+
"Number of quarters of Medicare-covered employment. Most people have "
|
|
10
|
+
"40+ quarters and qualify for premium-free Part A. Those with 30-39 "
|
|
11
|
+
"quarters pay a reduced premium, and those with fewer than 30 quarters "
|
|
12
|
+
"pay the full premium."
|
|
13
|
+
)
|
|
14
|
+
definition_period = YEAR
|
|
15
|
+
|
|
16
|
+
adds = "gov.hhs.medicare.part_a.default_quarters_of_coverage"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class base_part_b_premium(Variable):
|
|
5
|
+
value_type = float
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Medicare Part B Base Premium"
|
|
8
|
+
unit = USD
|
|
9
|
+
documentation = "Medicare Part B Premium."
|
|
10
|
+
definition_period = YEAR
|
|
11
|
+
defined_for = "is_medicare_eligible"
|
|
12
|
+
|
|
13
|
+
def formula(person, period, parameters):
|
|
14
|
+
p = parameters(period).gov.hhs.medicare.part_b
|
|
15
|
+
# base_premium is a monthly amount, multiply by MONTHS_IN_YEAR for annual
|
|
16
|
+
return p.base_premium * MONTHS_IN_YEAR
|
policyengine_us/variables/gov/hhs/medicare/eligibility/part_b/income_adjusted_part_b_premium.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class income_adjusted_part_b_premium(Variable):
|
|
5
|
+
value_type = float
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Medicare Part B premium (income-adjusted)"
|
|
8
|
+
unit = USD
|
|
9
|
+
definition_period = YEAR
|
|
10
|
+
defined_for = "is_medicare_eligible"
|
|
11
|
+
reference = "https://www.medicare.gov/your-medicare-costs/part-b-costs"
|
|
12
|
+
documentation = "Medicare Part B premium adjusted for income (IRMAA). Based on modified adjusted gross income from 2 years prior."
|
|
13
|
+
|
|
14
|
+
def formula(person, period, parameters):
|
|
15
|
+
|
|
16
|
+
tax_unit = person.tax_unit
|
|
17
|
+
filing_status = tax_unit("filing_status", period)
|
|
18
|
+
# Medicare Part B IRMAA is based on MAGI from 2 years prior
|
|
19
|
+
# MAGI = AGI + tax-exempt interest
|
|
20
|
+
prior_period = period.offset(-2, "year")
|
|
21
|
+
agi = tax_unit("adjusted_gross_income", prior_period)
|
|
22
|
+
tax_exempt_interest = tax_unit(
|
|
23
|
+
"tax_exempt_interest_income", prior_period
|
|
24
|
+
)
|
|
25
|
+
magi = agi + tax_exempt_interest
|
|
26
|
+
base = person("base_part_b_premium", period)
|
|
27
|
+
|
|
28
|
+
# Build boolean masks for each status
|
|
29
|
+
status = filing_status.possible_values
|
|
30
|
+
statuses = [
|
|
31
|
+
status.SINGLE,
|
|
32
|
+
status.JOINT,
|
|
33
|
+
status.HEAD_OF_HOUSEHOLD,
|
|
34
|
+
status.SURVIVING_SPOUSE,
|
|
35
|
+
status.SEPARATE,
|
|
36
|
+
]
|
|
37
|
+
in_status = [filing_status == s for s in statuses]
|
|
38
|
+
|
|
39
|
+
p = parameters(period).gov.hhs.medicare.part_b.irmaa
|
|
40
|
+
|
|
41
|
+
irmaa_amount = select(
|
|
42
|
+
in_status,
|
|
43
|
+
[
|
|
44
|
+
p.single.calc(magi),
|
|
45
|
+
p.joint.calc(magi),
|
|
46
|
+
p.head_of_household.calc(magi),
|
|
47
|
+
p.surviving_spouse.calc(magi),
|
|
48
|
+
p.separate.calc(magi),
|
|
49
|
+
],
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
# IRMAA amounts are monthly, multiply by MONTHS_IN_YEAR to get annual
|
|
53
|
+
# Base is already annual
|
|
54
|
+
annual_irmaa = irmaa_amount * MONTHS_IN_YEAR
|
|
55
|
+
return base + annual_irmaa
|
|
@@ -4,14 +4,13 @@ from policyengine_us.model_api import *
|
|
|
4
4
|
class qbid_amount(Variable):
|
|
5
5
|
value_type = float
|
|
6
6
|
entity = Person
|
|
7
|
-
label =
|
|
8
|
-
"Per-cap qualified business income deduction amount for each person"
|
|
9
|
-
)
|
|
7
|
+
label = "Per-person qualified business income deduction amount"
|
|
10
8
|
unit = USD
|
|
11
9
|
definition_period = YEAR
|
|
12
10
|
reference = (
|
|
13
|
-
"https://www.law.cornell.edu/uscode/text/26/199A#b_1"
|
|
14
|
-
"https://www.irs.gov/pub/irs-prior/p535--2018.pdf"
|
|
11
|
+
"https://www.law.cornell.edu/uscode/text/26/199A#b_1",
|
|
12
|
+
"https://www.irs.gov/pub/irs-prior/p535--2018.pdf",
|
|
13
|
+
"https://www.irs.gov/pub/irs-pdf/f8995.pdf",
|
|
15
14
|
)
|
|
16
15
|
|
|
17
16
|
def formula(person, period, parameters):
|
|
@@ -53,4 +52,15 @@ class qbid_amount(Variable):
|
|
|
53
52
|
)
|
|
54
53
|
line26 = max_(0, adj_qbid_max - reduction)
|
|
55
54
|
line12 = where(adj_cap < adj_qbid_max, line26, 0)
|
|
56
|
-
|
|
55
|
+
# QBI component (Worksheet 12-A, line 13 / Form 8995 Line 5)
|
|
56
|
+
qbi_component = max_(line11, line12)
|
|
57
|
+
|
|
58
|
+
# REIT/PTP component (Form 8995 Lines 6-9)
|
|
59
|
+
# Per §199A(b)(1)(B), qualified REIT dividends and qualified PTP income
|
|
60
|
+
# receive a 20% deduction WITHOUT W-2 wage or UBIA limitations
|
|
61
|
+
reit_ptp_income = person("qualified_reit_and_ptp_income", period)
|
|
62
|
+
reit_ptp_component = p.max.reit_ptp_rate * max_(0, reit_ptp_income)
|
|
63
|
+
|
|
64
|
+
# Total QBID = QBI component + REIT/PTP component
|
|
65
|
+
# (Form 8995 Line 10: Add lines 5 and 9)
|
|
66
|
+
return qbi_component + reit_ptp_component
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class amt_exemption(Variable):
|
|
5
|
+
value_type = float
|
|
6
|
+
entity = TaxUnit
|
|
7
|
+
definition_period = YEAR
|
|
8
|
+
label = "Alternative Minimum Tax exemption"
|
|
9
|
+
unit = USD
|
|
10
|
+
documentation = (
|
|
11
|
+
"AMT exemption amount after phase-out and kiddie tax adjustments. "
|
|
12
|
+
"Form 6251, Line 5."
|
|
13
|
+
)
|
|
14
|
+
reference = [
|
|
15
|
+
"https://www.law.cornell.edu/uscode/text/26/55#d", # 26 U.S.C. § 55(d)
|
|
16
|
+
"https://www.irs.gov/instructions/i6251",
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
def formula(tax_unit, period, parameters):
|
|
20
|
+
p = parameters(period).gov.irs.income.amt
|
|
21
|
+
phase_out = p.exemption.phase_out
|
|
22
|
+
filing_status = tax_unit("filing_status", period)
|
|
23
|
+
amt_income = tax_unit("amt_income", period)
|
|
24
|
+
|
|
25
|
+
# Base exemption amount based on filing status
|
|
26
|
+
base_exemption_amount = p.exemption.amount[filing_status]
|
|
27
|
+
|
|
28
|
+
# Phase-out at higher income levels
|
|
29
|
+
income_excess = max_(0, amt_income - phase_out.start[filing_status])
|
|
30
|
+
exemption_phase_out = phase_out.rate * income_excess
|
|
31
|
+
reduced_exemption_amount = max_(
|
|
32
|
+
0,
|
|
33
|
+
base_exemption_amount - exemption_phase_out,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
# A reduced exemption amount is applied to kiddie tax filers
|
|
37
|
+
kiddie_tax_applies = tax_unit("amt_kiddie_tax_applies", period)
|
|
38
|
+
adj_earnings = tax_unit("filer_adjusted_earnings", period)
|
|
39
|
+
child_amount = p.exemption.child.amount
|
|
40
|
+
|
|
41
|
+
exemption_cap = where(
|
|
42
|
+
kiddie_tax_applies,
|
|
43
|
+
adj_earnings + child_amount,
|
|
44
|
+
np.inf,
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
return min_(reduced_exemption_amount, exemption_cap)
|
|
@@ -17,28 +17,10 @@ class amt_income_less_exemptions(Variable):
|
|
|
17
17
|
taxable_income = tax_unit("taxable_income", period)
|
|
18
18
|
kiddie_tax_applies = tax_unit("amt_kiddie_tax_applies", period)
|
|
19
19
|
applied_income = where(kiddie_tax_applies, taxable_income, amt_income)
|
|
20
|
+
|
|
20
21
|
# Form 6251, Part II top
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
filing_status = tax_unit("filing_status", period)
|
|
24
|
-
# Line 5 the exemption amount is based on filing status and
|
|
25
|
-
# is phased-out at higher income
|
|
26
|
-
base_exemption_amount = p.exemption.amount[filing_status]
|
|
27
|
-
income_excess = max_(0, amt_income - phase_out.start[filing_status])
|
|
28
|
-
exemption_phase_out = phase_out.rate * income_excess
|
|
29
|
-
reduced_exemption_amount = max_(
|
|
30
|
-
0,
|
|
31
|
-
(base_exemption_amount - exemption_phase_out),
|
|
32
|
-
)
|
|
33
|
-
# A reduced exemption amount is applied to kiddie tax filers
|
|
34
|
-
adj_earnings = tax_unit("filer_adjusted_earnings", period)
|
|
35
|
-
child_amount = p.exemption.child.amount
|
|
22
|
+
# Line 5
|
|
23
|
+
amt_exemption = tax_unit("amt_exemption", period)
|
|
36
24
|
|
|
37
|
-
exemption_cap = where(
|
|
38
|
-
kiddie_tax_applies,
|
|
39
|
-
adj_earnings + child_amount,
|
|
40
|
-
np.inf,
|
|
41
|
-
)
|
|
42
|
-
capped_exemption_amount = min_(reduced_exemption_amount, exemption_cap)
|
|
43
25
|
# Line 6
|
|
44
|
-
return max_(0, applied_income -
|
|
26
|
+
return max_(0, applied_income - amt_exemption)
|
|
@@ -4,15 +4,36 @@ from policyengine_us.model_api import *
|
|
|
4
4
|
class is_ca_medicaid_immigration_status_eligible(Variable):
|
|
5
5
|
value_type = bool
|
|
6
6
|
entity = Person
|
|
7
|
-
label = "Eligible for California
|
|
7
|
+
label = "Eligible for California Medi-Cal without satisfactory immigration status"
|
|
8
8
|
definition_period = YEAR
|
|
9
|
-
reference =
|
|
9
|
+
reference = (
|
|
10
10
|
"https://california.public.law/codes/welfare_and_institutions_code_section_14007.8",
|
|
11
|
-
|
|
11
|
+
)
|
|
12
|
+
documentation = """
|
|
13
|
+
California Welfare and Institutions Code Section 14007.8 provides
|
|
14
|
+
state-funded Medi-Cal to individuals without satisfactory immigration
|
|
15
|
+
status based on age brackets. Starting January 1, 2026, new enrollments
|
|
16
|
+
for adults 19+ are frozen, but existing enrollees retain coverage.
|
|
17
|
+
"""
|
|
12
18
|
defined_for = StateCode.CA
|
|
13
19
|
|
|
14
20
|
def formula(person, period, parameters):
|
|
15
21
|
p = parameters(period).gov.states.ca.chhs
|
|
16
22
|
age = person("age", period)
|
|
17
23
|
pregnant = person("is_pregnant", period)
|
|
18
|
-
|
|
24
|
+
# Standard eligibility based on age or pregnancy
|
|
25
|
+
standard_eligible = (
|
|
26
|
+
p.eligible_regardless_of_immigration_status.calc(age) | pregnant
|
|
27
|
+
)
|
|
28
|
+
# Continuous coverage only applies after enrollment freeze
|
|
29
|
+
if p.medi_cal_enrollment_freeze.in_effect:
|
|
30
|
+
receives_medicaid = person("receives_medicaid", period)
|
|
31
|
+
# Section 14007.8 is specifically for undocumented immigrants
|
|
32
|
+
immigration_status = person("immigration_status", period)
|
|
33
|
+
undocumented = (
|
|
34
|
+
immigration_status
|
|
35
|
+
== immigration_status.possible_values.UNDOCUMENTED
|
|
36
|
+
)
|
|
37
|
+
continuous_coverage = receives_medicaid & undocumented
|
|
38
|
+
return standard_eligible | continuous_coverage
|
|
39
|
+
return standard_eligible
|
|
@@ -29,10 +29,12 @@ class ca_amt_exemption(Variable):
|
|
|
29
29
|
reduced_amti_rate = reduced_amti * p_irs.phase_out.rate
|
|
30
30
|
# Line 6
|
|
31
31
|
adult_exemption = max_(exemption_max_amount - reduced_amti_rate, 0)
|
|
32
|
-
# Eligible children receive an increased exemption amount
|
|
32
|
+
# Eligible children receive an increased exemption amount.
|
|
33
|
+
# This applies when the HEAD of the tax unit is a child dependent.
|
|
33
34
|
person = tax_unit.members
|
|
34
35
|
eligible_child = person("is_child_dependent", period)
|
|
35
|
-
|
|
36
|
+
is_head = person("is_tax_unit_head", period)
|
|
37
|
+
head_is_eligible_child = tax_unit.any(eligible_child & is_head)
|
|
36
38
|
# Line 7
|
|
37
39
|
exemption_amount_child = p_irs.child.amount
|
|
38
40
|
# Line 8
|
|
@@ -15,7 +15,7 @@ class co_care_worker_credit_eligible(Variable):
|
|
|
15
15
|
joint = tax_unit("tax_unit_is_joint", period)
|
|
16
16
|
agi = tax_unit("adjusted_gross_income", period)
|
|
17
17
|
income_limit = where(
|
|
18
|
-
joint, p.income_limit.joint, p.income_limit.
|
|
18
|
+
joint, p.income_limit.joint, p.income_limit.non_joint
|
|
19
19
|
)
|
|
20
20
|
income_eligible = agi <= income_limit
|
|
21
21
|
eligible_care_worker_present = (
|
|
@@ -18,6 +18,6 @@ class il_aabd_immigration_status_eligible_person(Variable):
|
|
|
18
18
|
immigration_status_str = immigration_status.decode_to_str()
|
|
19
19
|
has_qualifying_status = np.isin(
|
|
20
20
|
immigration_status_str,
|
|
21
|
-
p.
|
|
21
|
+
p.qualified_noncitizen_statuses,
|
|
22
22
|
)
|
|
23
23
|
return has_qualifying_status | is_citizen
|
|
@@ -15,7 +15,7 @@ class il_tanf_immigration_status_eligible_person(Variable):
|
|
|
15
15
|
immigration_status_str = immigration_status.decode_to_str()
|
|
16
16
|
has_qualifying_status = np.isin(
|
|
17
17
|
immigration_status_str,
|
|
18
|
-
p.
|
|
18
|
+
p.qualified_noncitizen_statuses,
|
|
19
19
|
)
|
|
20
20
|
is_citizen = (
|
|
21
21
|
immigration_status == immigration_status.possible_values.CITIZEN
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class il_bcc_age_eligible(Variable):
|
|
5
|
+
value_type = bool
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Illinois Health Benefits for Persons with Breast or Cervical Cancer age eligible"
|
|
8
|
+
definition_period = YEAR
|
|
9
|
+
reference = ("https://www.dhs.state.il.us/page.aspx?item=33528",)
|
|
10
|
+
defined_for = StateCode.IL
|
|
11
|
+
|
|
12
|
+
def formula(person, period, parameters):
|
|
13
|
+
p = parameters(period).gov.states.il.hfs.bcc.eligibility
|
|
14
|
+
age = person("age", period)
|
|
15
|
+
return age < p.age
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class il_bcc_eligible(Variable):
|
|
5
|
+
value_type = bool
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Illinois Health Benefits for Persons with Breast or Cervical Cancer eligible"
|
|
8
|
+
definition_period = YEAR
|
|
9
|
+
reference = (
|
|
10
|
+
"https://www.dhs.state.il.us/page.aspx?item=33528",
|
|
11
|
+
"https://www.dhs.state.il.us/page.aspx?item=33527",
|
|
12
|
+
)
|
|
13
|
+
defined_for = StateCode.IL
|
|
14
|
+
|
|
15
|
+
def formula(person, period, parameters):
|
|
16
|
+
is_female = person("is_female", period)
|
|
17
|
+
age_eligible = person("il_bcc_age_eligible", period)
|
|
18
|
+
immigration_eligible = person(
|
|
19
|
+
"il_hfs_immigration_status_eligible", period
|
|
20
|
+
)
|
|
21
|
+
insurance_eligible = person("il_bcc_insurance_eligible", period)
|
|
22
|
+
return (
|
|
23
|
+
is_female
|
|
24
|
+
& age_eligible
|
|
25
|
+
& immigration_eligible
|
|
26
|
+
& insurance_eligible
|
|
27
|
+
)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class il_bcc_insurance_eligible(Variable):
|
|
5
|
+
value_type = bool
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Illinois BCC insurance eligible"
|
|
8
|
+
definition_period = YEAR
|
|
9
|
+
reference = (
|
|
10
|
+
"https://www.dhs.state.il.us/page.aspx?item=33528",
|
|
11
|
+
"https://www.ilga.gov/legislation/ilcs/documents/030500050K5-2.htm",
|
|
12
|
+
)
|
|
13
|
+
defined_for = StateCode.IL
|
|
14
|
+
|
|
15
|
+
def formula(person, period, parameters):
|
|
16
|
+
# Per PM 06-20-02, persons are eligible if they are "uninsured".
|
|
17
|
+
# A person is NOT uninsured (thus ineligible) if they have:
|
|
18
|
+
# - Medicaid eligibility through another pathway
|
|
19
|
+
# - Health coverage that would pay for cancer treatment
|
|
20
|
+
#
|
|
21
|
+
# Exceptions that still qualify as "uninsured":
|
|
22
|
+
# - Coverage with limited benefits
|
|
23
|
+
# - Coverage where lifetime cap has been met/exceeded
|
|
24
|
+
# - Coverage that excludes cancer treatment
|
|
25
|
+
# - Indian Health Service coverage only
|
|
26
|
+
on_medicaid = person("receives_medicaid", period)
|
|
27
|
+
has_qualifying_coverage = person("has_bcc_qualifying_coverage", period)
|
|
28
|
+
has_disqualifying_coverage = on_medicaid | has_qualifying_coverage
|
|
29
|
+
return ~has_disqualifying_coverage
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class il_fpp_eligible(Variable):
|
|
5
|
+
value_type = bool
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Illinois Family Planning Program eligible"
|
|
8
|
+
definition_period = YEAR
|
|
9
|
+
reference = (
|
|
10
|
+
"https://www.dhs.state.il.us/page.aspx?item=146077",
|
|
11
|
+
"https://hfs.illinois.gov/medicalclients/familyplanning.html",
|
|
12
|
+
"https://www.ilga.gov/agencies/JCAR/EntirePart?titlepart=07700635",
|
|
13
|
+
)
|
|
14
|
+
defined_for = StateCode.IL
|
|
15
|
+
|
|
16
|
+
def formula(person, period, parameters):
|
|
17
|
+
# Note: Illinois has two Family Planning programs:
|
|
18
|
+
# 1. Family Planning Presumptive Eligibility (FPPE) - temporary
|
|
19
|
+
# coverage, does NOT require citizenship/immigration status
|
|
20
|
+
# 2. Ongoing Family Planning Program - 1 year coverage, REQUIRES
|
|
21
|
+
# US citizenship or qualified immigrant status
|
|
22
|
+
# This variable models the ongoing program. The only eligibility
|
|
23
|
+
# difference between the two is the immigration requirement.
|
|
24
|
+
|
|
25
|
+
income_eligible = person("il_fpp_income_eligible", period)
|
|
26
|
+
# Must NOT be pregnant (pregnant individuals should apply for
|
|
27
|
+
# maternal health programs instead)
|
|
28
|
+
not_pregnant = ~person("is_pregnant", period)
|
|
29
|
+
# Use shared IL HFS immigration status check
|
|
30
|
+
immigration_eligible = person(
|
|
31
|
+
"il_hfs_immigration_status_eligible", period
|
|
32
|
+
)
|
|
33
|
+
# Cannot be enrolled in other non-spenddown full medical coverage
|
|
34
|
+
not_on_medicaid = ~person("is_medicaid_eligible", period)
|
|
35
|
+
return (
|
|
36
|
+
income_eligible
|
|
37
|
+
& not_pregnant
|
|
38
|
+
& immigration_eligible
|
|
39
|
+
& not_on_medicaid
|
|
40
|
+
)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class il_fpp_income_eligible(Variable):
|
|
5
|
+
value_type = bool
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Illinois Family Planning Program income eligible"
|
|
8
|
+
definition_period = YEAR
|
|
9
|
+
reference = (
|
|
10
|
+
"https://www.dhs.state.il.us/page.aspx?item=146077",
|
|
11
|
+
"https://hfs.illinois.gov/medicalclients/familyplanning.html",
|
|
12
|
+
)
|
|
13
|
+
defined_for = StateCode.IL
|
|
14
|
+
|
|
15
|
+
def formula(person, period, parameters):
|
|
16
|
+
p = parameters(period).gov.states.il.hfs.fpp.eligibility
|
|
17
|
+
income_level = person("il_fpp_income_level", period)
|
|
18
|
+
return income_level <= p.income_limit
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
from policyengine_us.variables.gov.hhs.tax_unit_fpg import fpg
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class il_fpp_income_level(Variable):
|
|
6
|
+
value_type = float
|
|
7
|
+
entity = Person
|
|
8
|
+
label = "Illinois Family Planning Program income level"
|
|
9
|
+
unit = "/1"
|
|
10
|
+
definition_period = YEAR
|
|
11
|
+
reference = (
|
|
12
|
+
"https://www.dhs.state.il.us/page.aspx?item=146077",
|
|
13
|
+
"https://hfs.illinois.gov/medicalclients/familyplanning.html",
|
|
14
|
+
)
|
|
15
|
+
defined_for = StateCode.IL
|
|
16
|
+
|
|
17
|
+
def formula(person, period, parameters):
|
|
18
|
+
# Only the applicant's income is counted (not household income)
|
|
19
|
+
income = person("adjusted_gross_income_person", period)
|
|
20
|
+
|
|
21
|
+
# Fixed household size of 2 per IL FPP policy
|
|
22
|
+
p = parameters(period).gov.states.il.hfs.fpp.eligibility
|
|
23
|
+
|
|
24
|
+
# Calculate FPG using fixed household size
|
|
25
|
+
state_group = person.household("state_group_str", period)
|
|
26
|
+
fpp_fpg = fpg(p.household_size, state_group, period, parameters)
|
|
27
|
+
|
|
28
|
+
# Return income as fraction of FPL
|
|
29
|
+
return income / fpp_fpg
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class il_hbwd_countable_assets(Variable):
|
|
5
|
+
value_type = float
|
|
6
|
+
unit = USD
|
|
7
|
+
entity = Person
|
|
8
|
+
label = "Illinois Health Benefits for Workers with Disabilities countable assets"
|
|
9
|
+
definition_period = MONTH
|
|
10
|
+
reference = (
|
|
11
|
+
"https://www.law.cornell.edu/regulations/illinois/Ill-Admin-Code-tit-89-SS-120.381",
|
|
12
|
+
"https://www.law.cornell.edu/regulations/illinois/Ill-Admin-Code-tit-89-SS-120.510",
|
|
13
|
+
"https://hfs.illinois.gov/medicalprograms/hbwd/eligibility.html",
|
|
14
|
+
)
|
|
15
|
+
defined_for = StateCode.IL
|
|
16
|
+
|
|
17
|
+
def formula(person, period, parameters):
|
|
18
|
+
# HBWD exempt assets per § 120.381:
|
|
19
|
+
# - Primary residence (homestead)
|
|
20
|
+
# - Personal effects and household goods
|
|
21
|
+
# - One vehicle (full exemption if essential, $4,500 if not)
|
|
22
|
+
# - Life insurance ≤$1,500
|
|
23
|
+
# - Burial resources
|
|
24
|
+
# - Retirement accounts inaccessible before age 59.5
|
|
25
|
+
# - Medical savings accounts (26 USC 220)
|
|
26
|
+
# Currently only implementing vehicle exemption
|
|
27
|
+
# § 120.381 and § 113.141 have identical vehicle exemption rules,
|
|
28
|
+
# so using AABD vehicle calculation
|
|
29
|
+
cash_assets = person.spm_unit("spm_unit_cash_assets", period.this_year)
|
|
30
|
+
vehicle_value = person.spm_unit(
|
|
31
|
+
"il_aabd_countable_vehicle_value", period
|
|
32
|
+
)
|
|
33
|
+
# TODO: Implement homestead, retirement account, burial, and other exemptions
|
|
34
|
+
return cash_assets + vehicle_value
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class il_hbwd_age_eligible(Variable):
|
|
5
|
+
value_type = bool
|
|
6
|
+
entity = Person
|
|
7
|
+
label = (
|
|
8
|
+
"Illinois Health Benefits for Workers with Disabilities age eligible"
|
|
9
|
+
)
|
|
10
|
+
definition_period = MONTH
|
|
11
|
+
reference = (
|
|
12
|
+
"https://www.law.cornell.edu/regulations/illinois/Ill-Admin-Code-tit-89-SS-120.510",
|
|
13
|
+
"https://hfs.illinois.gov/medicalprograms/hbwd/eligibility.html",
|
|
14
|
+
)
|
|
15
|
+
defined_for = StateCode.IL
|
|
16
|
+
|
|
17
|
+
def formula(person, period, parameters):
|
|
18
|
+
p = parameters(period).gov.states.il.hfs.hbwd.eligibility
|
|
19
|
+
age = person("monthly_age", period)
|
|
20
|
+
return p.age.calc(age)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class il_hbwd_asset_eligible(Variable):
|
|
5
|
+
value_type = bool
|
|
6
|
+
entity = Person
|
|
7
|
+
label = (
|
|
8
|
+
"Illinois Health Benefits for Workers with Disabilities asset eligible"
|
|
9
|
+
)
|
|
10
|
+
definition_period = MONTH
|
|
11
|
+
reference = (
|
|
12
|
+
"https://www.law.cornell.edu/regulations/illinois/Ill-Admin-Code-tit-89-SS-120.510",
|
|
13
|
+
"https://hfs.illinois.gov/medicalprograms/hbwd/eligibility.html",
|
|
14
|
+
)
|
|
15
|
+
defined_for = StateCode.IL
|
|
16
|
+
|
|
17
|
+
def formula(person, period, parameters):
|
|
18
|
+
p = parameters(period).gov.states.il.hfs.hbwd.eligibility
|
|
19
|
+
# Check countable assets against $25,000 limit
|
|
20
|
+
countable_assets = person("il_hbwd_countable_assets", period)
|
|
21
|
+
return countable_assets <= p.asset.limit
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class il_hbwd_disability_eligible(Variable):
|
|
5
|
+
value_type = bool
|
|
6
|
+
entity = Person
|
|
7
|
+
label = "Illinois Health Benefits for Workers with Disabilities disability eligible"
|
|
8
|
+
definition_period = MONTH
|
|
9
|
+
reference = (
|
|
10
|
+
"https://www.law.cornell.edu/regulations/illinois/Ill-Admin-Code-tit-89-SS-120.510",
|
|
11
|
+
"https://hfs.illinois.gov/medicalprograms/hbwd/eligibility.html",
|
|
12
|
+
)
|
|
13
|
+
defined_for = StateCode.IL
|
|
14
|
+
|
|
15
|
+
def formula(person, period, parameters):
|
|
16
|
+
# Must meet Social Security Administration's definition of disability
|
|
17
|
+
is_ssi_disabled = person("is_ssi_disabled", period)
|
|
18
|
+
# Or currently receiving SSDI
|
|
19
|
+
receives_ssdi = person("social_security_disability", period) > 0
|
|
20
|
+
return is_ssi_disabled | receives_ssdi
|