policyengine-us 1.458.0__py3-none-any.whl → 1.471.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/gov/contrib/aca/ptc_700_fpl_cliff/brackets.yaml +52 -0
- policyengine_us/parameters/gov/contrib/aca/ptc_700_fpl_cliff/in_effect.yaml +9 -0
- policyengine_us/parameters/gov/contrib/aca/ptc_700_fpl_cliff/income_eligibility.yaml +27 -0
- policyengine_us/parameters/gov/hhs/medicaid/emergency_medicaid/enabled.yaml +14 -0
- policyengine_us/parameters/gov/hhs/medicaid/emergency_medicaid/uses_medicaid_income_thresholds.yaml +13 -0
- policyengine_us/parameters/gov/hhs/medicare/savings_programs/eligibility/asset/applies.yaml +115 -0
- policyengine_us/parameters/gov/hhs/medicare/savings_programs/eligibility/asset/couple.yaml +14 -0
- policyengine_us/parameters/gov/hhs/medicare/savings_programs/eligibility/asset/individual.yaml +14 -0
- policyengine_us/parameters/gov/hhs/medicare/savings_programs/eligibility/income/qi/fpl_limit.yaml +14 -0
- policyengine_us/parameters/gov/hhs/medicare/savings_programs/eligibility/income/qmb/fpl_limit.yaml +18 -0
- policyengine_us/parameters/gov/hhs/medicare/savings_programs/eligibility/income/slmb/fpl_limit.yaml +15 -0
- policyengine_us/parameters/gov/ssa/revenue/oasdi_share_of_gross_ss.yaml +13 -0
- policyengine_us/parameters/gov/states/az/tax/income/credits/property_tax/income_sources.yaml +17 -9
- policyengine_us/parameters/gov/states/hi/tax/income/credits/food_excise_tax/amount/head_of_household.yaml +1 -1
- policyengine_us/parameters/gov/states/hi/tax/income/credits/food_excise_tax/amount/joint.yaml +1 -1
- policyengine_us/parameters/gov/states/hi/tax/income/credits/food_excise_tax/amount/separate.yaml +1 -1
- policyengine_us/parameters/gov/states/hi/tax/income/credits/food_excise_tax/amount/single.yaml +1 -1
- policyengine_us/parameters/gov/states/hi/tax/income/credits/food_excise_tax/amount/surviving_spouse.yaml +1 -1
- policyengine_us/parameters/gov/states/ia/tax/income/credits/child_care/fraction.yaml +1 -1
- policyengine_us/parameters/gov/states/il/dhs/aabd/asset/sources.yaml +0 -1
- policyengine_us/parameters/gov/states/il/isbe/age_threshold/teen_parent.yaml +15 -0
- policyengine_us/parameters/gov/states/il/isbe/income/countable_sources.yaml +28 -0
- policyengine_us/parameters/gov/states/il/isbe/income/income_limit_rate.yaml +13 -0
- policyengine_us/parameters/gov/states/il/isbe/pfa/benefit/amount.yaml +15 -0
- policyengine_us/parameters/gov/states/il/isbe/pfae/benefit/amount.yaml +15 -0
- policyengine_us/parameters/gov/states/il/isbe/pfae/eligibility/age_range.yaml +26 -0
- policyengine_us/parameters/gov/states/il/isbe/pfae/eligibility/income/deep_poverty_rate.yaml +10 -0
- policyengine_us/parameters/gov/states/il/isbe/pfae/eligibility/income/low_income_rate.yaml +10 -0
- policyengine_us/parameters/gov/states/il/isbe/pi/benefit/amount.yaml +16 -0
- policyengine_us/parameters/gov/states/il/isbe/pi/eligibility/age_threshold/child.yaml +13 -0
- policyengine_us/parameters/gov/states/il/isbe/pi/eligibility/age_threshold/young_parent.yaml +11 -0
- policyengine_us/parameters/gov/states/il/isbe/pi/eligibility/income/deep_poverty_rate.yaml +11 -0
- policyengine_us/parameters/gov/states/il/isbe/pi/eligibility/income/low_income_rate.yaml +11 -0
- policyengine_us/parameters/gov/states/il/isbe/pi/eligibility/income/poverty_rate.yaml +11 -0
- policyengine_us/parameters/gov/states/il/isbe/pi/eligibility/priority/geriatric_pregnancy_age.yaml +10 -0
- policyengine_us/parameters/gov/states/il/isbe/pi/eligibility/risk_factors/minimum_score.yaml +11 -0
- policyengine_us/parameters/gov/states/in/fssa/README.md +1 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/README.md +1 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/eligibility/continuing/fpg_rate.yaml +12 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/income/deductions/benefit/earned_income_disregard/rate.yaml +12 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/income/deductions/eligibility/earned_income_disregard/rate.yaml +12 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/income/deductions/eligibility/flat_disregard/amount.yaml +12 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/income/deductions/work_expense/amount.yaml +12 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/resources/limit/at_application/amount.yaml +12 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/resources/limit/while_receiving/amount.yaml +12 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/resources/vehicle_exemption/amount.yaml +12 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/standard_of_need/amount.yaml +34 -0
- policyengine_us/parameters/gov/states/in/fssa/tanf/standard_of_need/max_unit_size.yaml +12 -0
- policyengine_us/parameters/gov/states/mi/tax/income/household_resources.yaml +1 -1
- policyengine_us/parameters/gov/states/mo/dss/tanf/child_care_deduction/amount.yaml +27 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/earned_income_disregard/amount.yaml +14 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/earned_income_disregard/thirty_only/amount.yaml +14 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/earned_income_disregard/thirty_plus_one_third/flat_amount.yaml +14 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/earned_income_disregard/thirty_plus_one_third/percentage.yaml +14 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/earned_income_disregard/two_thirds_disregard/percentage.yaml +14 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/income_limit/max_table_size.yaml +12 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/income_limit/rate.yaml +14 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/maximum_benefit/percentage.yaml +14 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/minimum_payment.yaml +12 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/resource_limit/amount.yaml +14 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/standard_of_need/additional_person_increment.yaml +12 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/standard_of_need/amount.yaml +38 -0
- policyengine_us/parameters/gov/states/mo/dss/tanf/standard_of_need/base_table_max_size.yaml +12 -0
- policyengine_us/parameters/gov/states/mo/tax/income/minimum_taxable_income.yaml +3 -0
- policyengine_us/parameters/gov/states/mo/tax/income/rates.yaml +13 -4
- policyengine_us/parameters/gov/states/mo/tax/income/subtractions/agi_subtractions.yaml +18 -0
- policyengine_us/parameters/gov/states/mo/tax/income/subtractions/net_capital_gain/rate.yaml +14 -0
- policyengine_us/parameters/gov/states/oh/odjfs/owf/income/deductions/earned_income_disregard/flat_amount.yaml +14 -0
- policyengine_us/parameters/gov/states/oh/odjfs/owf/income/deductions/earned_income_disregard/percentage_of_disregard.yaml +16 -0
- policyengine_us/parameters/gov/states/oh/odjfs/owf/initial_eligibility/income_limit_rate.yaml +14 -0
- policyengine_us/parameters/gov/states/oh/odjfs/owf/payment_standard/additional_person_increment.yaml +14 -0
- policyengine_us/parameters/gov/states/oh/odjfs/owf/payment_standard/amounts.yaml +43 -0
- policyengine_us/parameters/gov/states/oh/odjfs/owf/payment_standard/max_group_size.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/age_threshold/minor_child.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/income/adjusted_income_limit/additional_person.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/income/adjusted_income_limit/amount.yaml +32 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/income/child_support_disregard/max.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/income/child_support_disregard/per_child.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/income/countable_income_limit/additional_person.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/income/countable_income_limit/amount.yaml +32 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/income/earned_income_disregard_rate.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/income/eli_multiplier.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/maximum_need_group_size.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/minimum_benefit.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/payment_standard/additional_person.yaml +12 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/payment_standard/amount.yaml +32 -0
- policyengine_us/parameters/gov/states/or/odhs/tanf/resources/limit/amount.yaml +12 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/county_group/group_1.yaml +19 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/county_group/group_2.yaml +44 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/county_group/group_3.yaml +31 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/county_group/group_4.yaml +29 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/family_size_allowance/additional_person.yaml +14 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/family_size_allowance/amount.yaml +69 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/income/deductions/earned_income_disregard/percentage.yaml +14 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/income/deductions/work_expense/additional.yaml +15 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/income/deductions/work_expense/initial.yaml +14 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/max_family_size_in_table.yaml +12 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/resource_limit.yaml +7 -6
- policyengine_us/parameters/gov/states/pa/dhs/tanf/standard_of_need/additional_person.yaml +14 -0
- policyengine_us/parameters/gov/states/pa/dhs/tanf/standard_of_need/amount.yaml +69 -0
- policyengine_us/parameters/gov/states/wi/dcf/README.md +1 -0
- policyengine_us/parameters/gov/states/wi/dcf/works/README.md +1 -0
- policyengine_us/parameters/gov/states/wi/dcf/works/asset/limit.yaml +16 -0
- policyengine_us/parameters/gov/states/wi/dcf/works/asset/vehicle_exclusion.yaml +14 -0
- policyengine_us/parameters/gov/states/wi/dcf/works/income_limit/rate.yaml +16 -0
- policyengine_us/parameters/gov/states/wi/dcf/works/placement/amount.yaml +30 -0
- policyengine_us/parameters/gov/states/wi/dcf/works/placement/arp_pregnancy_month_threshold.yaml +14 -0
- policyengine_us/parameters/gov/states/wi/dcf/works/placement/cmc_infant_age_limit.yaml +15 -0
- policyengine_us/reforms/aca/__init__.py +3 -0
- policyengine_us/reforms/aca/aca_ptc_700_fpl_cliff.py +125 -0
- policyengine_us/reforms/reforms.py +5 -0
- policyengine_us/tests/microsimulation/test_microsim.py +46 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicaid/emergency_medicaid/integration.yaml +667 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicaid/emergency_medicaid/is_emergency_medicaid_eligible.yaml +376 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/category/msp_category.yaml +69 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/eligibility/msp_eligible.yaml +62 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_fpg.yaml +22 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/integration.yaml +84 -0
- policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/msp_benefit_value.yaml +62 -0
- policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/taxable_social_security_tier_1.yaml +157 -0
- policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/taxable_social_security_tier_2.yaml +106 -0
- policyengine_us/tests/policy/baseline/gov/ssa/revenue/employer_medicare_tax_income_tax_revenue.yaml +86 -0
- policyengine_us/tests/policy/baseline/gov/ssa/revenue/employer_ss_tax_income_tax_revenue.yaml +85 -0
- policyengine_us/tests/policy/baseline/gov/ssa/revenue/tob_revenue_medicare_hi.yaml +124 -0
- policyengine_us/tests/policy/baseline/gov/ssa/revenue/tob_revenue_oasdi.yaml +129 -0
- policyengine_us/tests/policy/baseline/gov/ssa/revenue/tob_revenue_total.yaml +19 -0
- policyengine_us/tests/policy/baseline/gov/ssa/revenue/tob_tier_split.yaml +72 -0
- policyengine_us/tests/policy/baseline/gov/states/az/tax/income/az_property_tax_credit_agi.yaml +58 -0
- policyengine_us/tests/policy/baseline/gov/states/az/tax/income/integration.yaml +28 -0
- policyengine_us/tests/policy/baseline/gov/states/dc/tax/income/dc_ptc.yaml +27 -0
- policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/credits/food_excise/hi_food_excise_credit.yaml +29 -1
- policyengine_us/tests/policy/baseline/gov/states/ia/tax/income/ia_cdcc.yaml +3 -3
- policyengine_us/tests/policy/baseline/gov/states/ia/tax/income/ia_integration.yaml +31 -1
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/aabd/eligibility/il_aabd_non_financial_eligible_person.yaml +6 -6
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/fpp/integration.yaml +2 -2
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/eligibility/il_hbwd_disability_eligible.yaml +18 -5
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/eligibility/il_hbwd_eligible.yaml +5 -5
- policyengine_us/tests/policy/baseline/gov/states/il/hfs/hbwd/integration.yaml +8 -8
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/eligibility/il_isbe_income_eligible.yaml +15 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/eligibility/il_isbe_was_teen_parent_at_first_birth.yaml +310 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pfae/eligibility/il_pfae_age_eligible_child.yaml +39 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pfae/eligibility/il_pfae_basic_eligible.yaml +26 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pfae/eligibility/il_pfae_eligible.yaml +49 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pfae/integration.yaml +102 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pfae/priority/il_pfae_has_highest_priority_factor.yaml +31 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pfae/priority/il_pfae_is_deep_poverty.yaml +15 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pfae/priority/il_pfae_is_low_income.yaml +15 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pfae/priority/il_pfae_secondary_priority_factor_count.yaml +85 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/il_pi_basic_eligible.yaml +46 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/il_pi_demographic_eligible.yaml +48 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/il_pi_eligible.yaml +38 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/il_pi_risk_eligible.yaml +74 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/income/il_pi_is_deep_poverty.yaml +43 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/income/il_pi_is_low_income.yaml +43 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/income/il_pi_is_poverty.yaml +43 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/priority/il_pi_has_developmental_delay.yaml +75 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/priority/il_pi_has_geriatric_pregnancy.yaml +74 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/priority/il_pi_highest_priority_score.yaml +100 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/priority/il_pi_is_young_parent_family.yaml +91 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/priority/il_pi_lower_priority_score.yaml +102 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/eligibility/priority/il_pi_other_priority_score.yaml +160 -0
- policyengine_us/tests/policy/baseline/gov/states/il/isbe/pi/integration.yaml +187 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/benefit/in_tanf_payment_standard.yaml +58 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/eligibility/in_tanf_countable_income_eligible.yaml +163 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/eligibility/in_tanf_eligible.yaml +94 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/eligibility/in_tanf_income_eligible.yaml +74 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/eligibility/in_tanf_payment_eligible.yaml +63 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/in_tanf.yaml +64 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/income/in_tanf_countable_earned_income.yaml +83 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/income/in_tanf_countable_earned_income_for_eligibility.yaml +112 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/income/in_tanf_countable_income_for_payment.yaml +71 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/integration.yaml +249 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/resources/in_tanf_countable_resources.yaml +38 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/resources/in_tanf_resources_eligible.yaml +60 -0
- policyengine_us/tests/policy/baseline/gov/states/in/fssa/tanf/resources/integration_with_eligibility.yaml +78 -0
- policyengine_us/tests/policy/baseline/gov/states/ma/tax/income/gross_income/integration.yaml +28 -0
- policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/integration.yaml +87 -0
- policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/me_dependent_exemption_credit_amount_person.yaml +3 -2
- policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/credits/home_heating/mi_home_heating_credit.yaml +87 -0
- policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_household_resources.yaml +57 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/integration.yaml +275 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf.yaml +60 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_child_care_deduction.yaml +187 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_countable_income.yaml +49 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_earned_income_deductions.yaml +53 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_eligible.yaml +59 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_gross_income_eligible.yaml +29 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_income_eligible.yaml +49 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_maximum_benefit.yaml +47 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_percentage_of_need_test.yaml +53 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_resources_eligible.yaml +23 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_standard_of_need.yaml +71 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_standard_of_need_test.yaml +44 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/tax/income/subtractions/mo_agi_subtractions.yaml +176 -0
- policyengine_us/tests/policy/baseline/gov/states/mo/tax/income/subtractions/mo_capital_gains_subtraction.yaml +65 -0
- policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/integration.yaml +29 -0
- policyengine_us/tests/policy/baseline/gov/states/nc/tax/income/deductions/nc_itemized_deductions.yaml +2 -2
- policyengine_us/tests/policy/baseline/gov/states/oh/odjfs/owf/integration.yaml +152 -0
- policyengine_us/tests/policy/baseline/gov/states/oh/odjfs/owf/oh_owf_countable_income.yaml +113 -0
- policyengine_us/tests/policy/baseline/gov/states/oh/odjfs/owf/oh_owf_eligible.yaml +239 -0
- policyengine_us/tests/policy/baseline/gov/states/oh/odjfs/owf/oh_owf_fpg.yaml +73 -0
- policyengine_us/tests/policy/baseline/gov/states/oh/odjfs/owf/oh_owf_income_eligible.yaml +80 -0
- policyengine_us/tests/policy/baseline/gov/states/oh/odjfs/owf/oh_owf_initial_income_eligible.yaml +160 -0
- policyengine_us/tests/policy/baseline/gov/states/oh/odjfs/owf/oh_owf_payment_standard.yaml +77 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/integration.yaml +363 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf.yaml +94 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_adjusted_income.yaml +77 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_adjusted_income_eligible.yaml +73 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_child_support_disregard.yaml +272 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_countable_income.yaml +70 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_countable_income_eligible.yaml +73 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_eli_eligible.yaml +47 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_eli_income_eligible.yaml +75 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_eligible.yaml +68 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_income_eligible.yaml +211 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_payment_standard.yaml +68 -0
- policyengine_us/tests/policy/baseline/gov/states/or/odhs/tanf/or_tanf_resources_eligible.yaml +37 -0
- policyengine_us/tests/policy/baseline/gov/states/pa/dhs/tanf/eligibility/pa_tanf_disregard_eligible.yaml +114 -0
- policyengine_us/tests/policy/baseline/gov/states/pa/dhs/tanf/eligibility/pa_tanf_eligible.yaml +65 -0
- policyengine_us/tests/policy/baseline/gov/states/pa/dhs/tanf/eligibility/pa_tanf_income_eligible.yaml +62 -0
- policyengine_us/tests/policy/baseline/gov/states/pa/dhs/tanf/eligibility/pa_tanf_resources_eligible.yaml +47 -0
- policyengine_us/tests/policy/baseline/gov/states/pa/dhs/tanf/income/pa_tanf_earned_income_after_deductions_person.yaml +81 -0
- policyengine_us/tests/policy/baseline/gov/states/pa/dhs/tanf/integration.yaml +386 -0
- policyengine_us/tests/policy/baseline/gov/states/pa/dhs/tanf/pa_tanf.yaml +53 -0
- policyengine_us/tests/policy/baseline/gov/states/pa/dhs/tanf/pa_tanf_county_group.yaml +63 -0
- policyengine_us/tests/policy/baseline/gov/states/pa/dhs/tanf/pa_tanf_maximum_benefit.yaml +92 -0
- policyengine_us/tests/policy/baseline/gov/states/pa/dhs/tanf/pa_tanf_standard_of_need.yaml +73 -0
- policyengine_us/tests/policy/baseline/gov/states/wi/dcf/works/integration.yaml +282 -0
- policyengine_us/tests/policy/baseline/gov/states/wi/dcf/works/wi_works.yaml +50 -0
- policyengine_us/tests/policy/baseline/gov/states/wi/dcf/works/wi_works_countable_income.yaml +49 -0
- policyengine_us/tests/policy/baseline/gov/states/wi/dcf/works/wi_works_countable_resources.yaml +54 -0
- policyengine_us/tests/policy/baseline/gov/states/wi/dcf/works/wi_works_eligible.yaml +61 -0
- policyengine_us/tests/policy/baseline/gov/states/wi/dcf/works/wi_works_income_eligible.yaml +43 -0
- policyengine_us/tests/policy/baseline/gov/states/wi/dcf/works/wi_works_placement.yaml +111 -0
- policyengine_us/tests/policy/baseline/gov/states/wi/dcf/works/wi_works_resources_eligible.yaml +38 -0
- policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/heptc/wv_homestead_excess_property_tax_credit.yaml +31 -0
- policyengine_us/tests/policy/contrib/aca/ptc_700_fpl_cliff.yaml +136 -0
- policyengine_us/tests/run_selective_tests.py +5 -0
- policyengine_us/tests/test_batched.py +144 -78
- policyengine_us/variables/gov/hhs/medicaid/emergency_medicaid/has_emergency_medical_condition.py +16 -0
- policyengine_us/variables/gov/hhs/medicaid/emergency_medicaid/is_emergency_medicaid_eligible.py +33 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/category/is_qi_eligible.py +33 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/category/is_qmb_eligible.py +28 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/category/is_slmb_eligible.py +33 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/category/msp_category.py +33 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/eligibility/msp_asset_eligible.py +26 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/eligibility/msp_eligible.py +20 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/eligibility/msp_income_eligible.py +26 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py +35 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_fpg.py +40 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/msp.py +15 -0
- policyengine_us/variables/gov/hhs/medicare/savings_programs/msp_benefit_value.py +37 -0
- policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/taxable_social_security_tier_1.py +58 -0
- policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/taxable_social_security_tier_2.py +17 -0
- policyengine_us/variables/gov/simulation/labor_supply_response/labor_supply_behavioral_response.py +57 -42
- policyengine_us/variables/gov/ssa/revenue/employer_medicare_tax_income_tax_revenue.py +58 -0
- policyengine_us/variables/gov/ssa/revenue/employer_ss_tax_income_tax_revenue.py +60 -0
- policyengine_us/variables/gov/ssa/revenue/tob_revenue_medicare_hi.py +67 -0
- policyengine_us/variables/gov/ssa/revenue/tob_revenue_oasdi.py +82 -0
- policyengine_us/variables/gov/ssa/revenue/tob_revenue_total.py +49 -0
- policyengine_us/variables/gov/states/az/tax/income/credits/property_tax_credit/az_property_tax_credit_agi.py +53 -0
- policyengine_us/variables/gov/states/dc/tax/income/credits/dc_ptc.py +7 -3
- policyengine_us/variables/gov/states/ia/tax/income/credits/ia_cdcc.py +4 -2
- policyengine_us/variables/gov/states/il/dhs/aabd/eligibility/il_aabd_non_financial_eligible_person.py +23 -5
- policyengine_us/variables/gov/states/il/hfs/fpp/eligibility/il_fpp_eligible.py +1 -1
- policyengine_us/variables/gov/states/il/hfs/hbwd/eligibility/il_hbwd_disability_eligible.py +7 -3
- policyengine_us/variables/gov/states/il/isbe/eligibility/il_isbe_income_eligible.py +26 -0
- policyengine_us/variables/gov/states/il/isbe/eligibility/il_isbe_was_teen_parent_at_first_birth.py +32 -0
- policyengine_us/variables/gov/states/il/isbe/income/il_isbe_countable_income.py +13 -0
- policyengine_us/variables/gov/states/il/isbe/pfa/il_pfa.py +15 -0
- policyengine_us/variables/gov/states/il/isbe/pfa/il_pfa_eligible.py +18 -0
- policyengine_us/variables/gov/states/il/isbe/pfae/eligibility/il_pfae_age_eligible_child.py +23 -0
- policyengine_us/variables/gov/states/il/isbe/pfae/eligibility/il_pfae_basic_eligible.py +19 -0
- policyengine_us/variables/gov/states/il/isbe/pfae/eligibility/il_pfae_eligible.py +28 -0
- policyengine_us/variables/gov/states/il/isbe/pfae/il_pfae.py +19 -0
- policyengine_us/variables/gov/states/il/isbe/pfae/priority/il_pfae_has_highest_priority_factor.py +40 -0
- policyengine_us/variables/gov/states/il/isbe/pfae/priority/il_pfae_is_deep_poverty.py +23 -0
- policyengine_us/variables/gov/states/il/isbe/pfae/priority/il_pfae_is_low_income.py +21 -0
- policyengine_us/variables/gov/states/il/isbe/pfae/priority/il_pfae_secondary_priority_factor_count.py +65 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/il_pi_basic_eligible.py +17 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/il_pi_demographic_eligible.py +18 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/il_pi_risk_eligible.py +18 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/income/il_pi_is_deep_poverty.py +23 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/income/il_pi_is_low_income.py +21 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/income/il_pi_is_poverty.py +21 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/priority/il_pi_has_developmental_delay.py +16 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/priority/il_pi_has_geriatric_pregnancy.py +20 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/priority/il_pi_highest_priority_score.py +37 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/priority/il_pi_is_young_parent_family.py +21 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/priority/il_pi_lower_priority_score.py +36 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/priority/il_pi_other_priority_score.py +54 -0
- policyengine_us/variables/gov/states/il/isbe/pi/eligibility/priority/il_pi_priority_score.py +19 -0
- policyengine_us/variables/gov/states/il/isbe/pi/il_pi.py +15 -0
- policyengine_us/variables/gov/states/il/isbe/pi/il_pi_eligible.py +18 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/eligibility/in_tanf_countable_income_eligible.py +31 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/eligibility/in_tanf_eligible.py +36 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/eligibility/in_tanf_income_eligible.py +21 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/eligibility/in_tanf_payment_eligible.py +18 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/eligibility/in_tanf_resources_eligible.py +25 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/in_tanf.py +21 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/in_tanf_payment_standard.py +19 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/income/in_tanf_countable_earned_income.py +20 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/income/in_tanf_countable_earned_income_for_eligibility.py +33 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/income/in_tanf_countable_income_for_eligibility.py +19 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/income/in_tanf_countable_income_for_payment.py +13 -0
- policyengine_us/variables/gov/states/in/fssa/tanf/resources/in_tanf_countable_resources.py +27 -0
- policyengine_us/variables/gov/states/ma/tax/income/gross_income/ma_part_c_gross_income.py +7 -1
- policyengine_us/variables/gov/states/me/tax/income/credits/dependent_exemption/me_dependent_exemption_credit_amount_person.py +1 -1
- policyengine_us/variables/gov/states/mi/tax/income/mi_household_resources.py +34 -5
- policyengine_us/variables/gov/states/mo/dss/tanf/eligibility/mo_tanf_eligible.py +23 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/eligibility/mo_tanf_gross_income_eligible.py +24 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/eligibility/mo_tanf_income_eligible.py +18 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/eligibility/mo_tanf_percentage_of_need_test.py +20 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/eligibility/mo_tanf_resources_eligible.py +18 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/eligibility/mo_tanf_standard_of_need_test.py +17 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/income/deductions/mo_tanf_child_care_deduction.py +24 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/income/deductions/mo_tanf_earned_income_deductions.py +36 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/income/mo_tanf_countable_income.py +21 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/income/mo_tanf_income_for_need_test.py +23 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/mo_tanf.py +21 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/mo_tanf_maximum_benefit.py +19 -0
- policyengine_us/variables/gov/states/mo/dss/tanf/mo_tanf_standard_of_need.py +23 -0
- policyengine_us/variables/gov/states/mo/tax/income/adjusted_gross_income/mo_adjusted_gross_income.py +1 -1
- policyengine_us/variables/gov/states/mo/tax/income/subtractions/mo_agi_subtractions.py +16 -0
- policyengine_us/variables/gov/states/mo/tax/income/subtractions/mo_capital_gains_subtraction.py +20 -0
- policyengine_us/variables/gov/states/mo/tax/income/subtractions/mo_capital_gains_subtraction_person.py +28 -0
- policyengine_us/variables/gov/states/mt/tax/income/capital_gains/mt_capital_gains_tax_indiv.py +3 -1
- policyengine_us/variables/gov/states/mt/tax/income/capital_gains/mt_capital_gains_tax_joint.py +3 -1
- policyengine_us/variables/gov/states/mt/tax/income/tax_calculation/mt_regular_income_tax_indiv.py +3 -0
- policyengine_us/variables/gov/states/mt/tax/income/tax_calculation/mt_regular_income_tax_joint.py +3 -0
- policyengine_us/variables/gov/states/oh/odjfs/owf/eligibility/oh_owf_eligible.py +39 -0
- policyengine_us/variables/gov/states/oh/odjfs/owf/eligibility/oh_owf_income_eligible.py +33 -0
- policyengine_us/variables/gov/states/oh/odjfs/owf/eligibility/oh_owf_initial_income_eligible.py +30 -0
- policyengine_us/variables/gov/states/oh/odjfs/owf/income/oh_owf_countable_income.py +40 -0
- policyengine_us/variables/gov/states/oh/odjfs/owf/oh_owf.py +23 -0
- policyengine_us/variables/gov/states/oh/odjfs/owf/oh_owf_fpg.py +32 -0
- policyengine_us/variables/gov/states/oh/odjfs/owf/oh_owf_payment_standard.py +26 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/benefit/or_tanf_payment_standard.py +23 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/eligibility/or_tanf_adjusted_income_eligible.py +28 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/eligibility/or_tanf_countable_income_eligible.py +28 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/eligibility/or_tanf_eli_eligible.py +16 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/eligibility/or_tanf_eli_income_eligible.py +20 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/eligibility/or_tanf_eligible.py +25 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/eligibility/or_tanf_income_eligible.py +26 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/eligibility/or_tanf_resources_eligible.py +19 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/income/or_tanf_adjusted_income.py +21 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/income/or_tanf_child_support_disregard.py +25 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/income/or_tanf_countable_income.py +20 -0
- policyengine_us/variables/gov/states/or/odhs/tanf/or_tanf.py +25 -0
- policyengine_us/variables/gov/states/pa/dhs/tanf/eligibility/pa_tanf_disregard_eligible.py +31 -0
- policyengine_us/variables/gov/states/pa/dhs/tanf/eligibility/pa_tanf_eligible.py +29 -0
- policyengine_us/variables/gov/states/pa/dhs/tanf/eligibility/pa_tanf_income_eligible.py +16 -0
- policyengine_us/variables/gov/states/pa/dhs/tanf/eligibility/pa_tanf_resources_eligible.py +7 -5
- policyengine_us/variables/gov/states/pa/dhs/tanf/income/pa_tanf_countable_earned_income.py +15 -0
- policyengine_us/variables/gov/states/pa/dhs/tanf/income/pa_tanf_countable_income.py +16 -0
- policyengine_us/variables/gov/states/pa/dhs/tanf/income/pa_tanf_earned_income_after_deductions_person.py +27 -0
- policyengine_us/variables/gov/states/pa/dhs/tanf/pa_tanf.py +19 -0
- policyengine_us/variables/gov/states/pa/dhs/tanf/pa_tanf_county_group.py +38 -0
- policyengine_us/variables/gov/states/pa/dhs/tanf/pa_tanf_maximum_benefit.py +30 -0
- policyengine_us/variables/gov/states/pa/dhs/tanf/pa_tanf_standard_of_need.py +30 -0
- policyengine_us/variables/gov/states/wi/dcf/works/eligibility/wi_works_eligible.py +22 -0
- policyengine_us/variables/gov/states/wi/dcf/works/eligibility/wi_works_income_eligible.py +20 -0
- policyengine_us/variables/gov/states/wi/dcf/works/eligibility/wi_works_resources_eligible.py +18 -0
- policyengine_us/variables/gov/states/wi/dcf/works/income/wi_works_countable_income.py +18 -0
- policyengine_us/variables/gov/states/wi/dcf/works/resources/wi_works_countable_resources.py +21 -0
- policyengine_us/variables/gov/states/wi/dcf/works/wi_works.py +19 -0
- policyengine_us/variables/gov/states/wi/dcf/works/wi_works_placement.py +45 -0
- policyengine_us/variables/gov/states/wv/tax/income/credits/heptc/wv_homestead_excess_property_tax_credit.py +3 -3
- policyengine_us/variables/gov/states/wv/tax/income/credits/heptc/wv_homestead_excess_property_tax_credit_eligible.py +5 -2
- policyengine_us/variables/household/demographic/geographic/county/county.py +9 -0
- policyengine_us/variables/household/demographic/geographic/is_non_english_speaking_home.py +9 -0
- policyengine_us/variables/household/demographic/household/parent_has_less_than_high_school_education.py +9 -0
- policyengine_us/variables/household/demographic/person/has_developmental_delay.py +9 -0
- policyengine_us/variables/household/demographic/person/has_individualized_education_program.py +9 -0
- policyengine_us/variables/household/demographic/person/has_no_prior_formal_early_learning.py +9 -0
- policyengine_us/variables/household/demographic/person/is_born_outside_us.py +9 -0
- {policyengine_us-1.458.0.dist-info → policyengine_us-1.471.0.dist-info}/METADATA +1 -1
- {policyengine_us-1.458.0.dist-info → policyengine_us-1.471.0.dist-info}/RECORD +381 -69
- policyengine_us/parameters/gov/states/il/dhs/aabd/aged_age_threshold.yaml +0 -11
- policyengine_us/parameters/gov/states/mo/dss/tanf/income_limit.yaml +0 -26
- policyengine_us/parameters/gov/states/pa/dhs/tanf/cash_assistance/age_limit.yaml +0 -11
- policyengine_us/parameters/gov/states/pa/dhs/tanf/pregnancy_eligibility/age_limit.yaml +0 -9
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/aabd/eligibility/il_aabd_aged_blind_disabled_person.yaml +0 -39
- policyengine_us/tests/policy/baseline/gov/states/mo/dss/tanf/mo_tanf_income_limit.yaml +0 -23
- policyengine_us/tests/policy/baseline/gov/states/pa/tanf/cash_assistance/pa_tanf_age_eligible.yaml +0 -44
- policyengine_us/tests/policy/baseline/gov/states/pa/tanf/pregnancy_eligibility/pa_tanf_pregnancy_eligibility.yaml +0 -59
- policyengine_us/tests/policy/baseline/gov/states/pa/tax/income/dhs/tanf/eligibility/pa_tanf_resources_eligible.yaml +0 -24
- policyengine_us/variables/gov/states/il/dhs/aabd/eligibility/il_aabd_aged_blind_disabled_person.py +0 -22
- policyengine_us/variables/gov/states/mo/dss/tanf/mo_tanf_income_limit.py +0 -18
- policyengine_us/variables/gov/states/pa/dhs/tanf/cash_assistance/pa_tanf_age_eligible.py +0 -22
- policyengine_us/variables/gov/states/pa/dhs/tanf/eligibility/pa_tanf_countable_resources.py +0 -10
- policyengine_us/variables/gov/states/pa/dhs/tanf/eligibility/pregnancy_eligibility/age_eligibility.py +0 -22
- {policyengine_us-1.458.0.dist-info → policyengine_us-1.471.0.dist-info}/WHEEL +0 -0
- {policyengine_us-1.458.0.dist-info → policyengine_us-1.471.0.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.458.0.dist-info → policyengine_us-1.471.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# Unit tests for taxable_social_security_tier_1
|
|
2
|
+
# Tests the tier 1 (0-50%) taxation of Social Security benefits
|
|
3
|
+
# Reference: IRC §86(a)(1)
|
|
4
|
+
#
|
|
5
|
+
# Thresholds for 2024:
|
|
6
|
+
# SINGLE: base=$25,000, adjusted_base=$34,000
|
|
7
|
+
# JOINT: base=$32,000, adjusted_base=$44,000
|
|
8
|
+
# SEPARATE (cohabitating): base=$0, adjusted_base=$0
|
|
9
|
+
|
|
10
|
+
- name: Single filer below base threshold - no taxation
|
|
11
|
+
period: 2024
|
|
12
|
+
input:
|
|
13
|
+
people:
|
|
14
|
+
person1:
|
|
15
|
+
age: 67
|
|
16
|
+
social_security: 20_000
|
|
17
|
+
employment_income: 10_000
|
|
18
|
+
tax_units:
|
|
19
|
+
tax_unit:
|
|
20
|
+
members: [person1]
|
|
21
|
+
filing_status: SINGLE
|
|
22
|
+
households:
|
|
23
|
+
household:
|
|
24
|
+
members: [person1]
|
|
25
|
+
output:
|
|
26
|
+
# Combined income = $10K + $10K (half SS) = $20K < $25K base
|
|
27
|
+
taxable_social_security_tier_1: 0
|
|
28
|
+
|
|
29
|
+
- name: Single filer in tier 1 only (between thresholds)
|
|
30
|
+
period: 2024
|
|
31
|
+
input:
|
|
32
|
+
people:
|
|
33
|
+
person1:
|
|
34
|
+
age: 67
|
|
35
|
+
social_security: 20_000
|
|
36
|
+
employment_income: 20_000
|
|
37
|
+
tax_units:
|
|
38
|
+
tax_unit:
|
|
39
|
+
members: [person1]
|
|
40
|
+
filing_status: SINGLE
|
|
41
|
+
households:
|
|
42
|
+
household:
|
|
43
|
+
members: [person1]
|
|
44
|
+
output:
|
|
45
|
+
# Combined income = $20K + $10K (half SS) = $30K
|
|
46
|
+
# $30K > $25K base but < $34K adjusted_base → tier 1 only
|
|
47
|
+
# Tier 1 = min(0.5 * $20K, 0.5 * ($30K - $25K))
|
|
48
|
+
# = min($10K, $2.5K) = $2,500
|
|
49
|
+
taxable_social_security_tier_1: 2_500
|
|
50
|
+
|
|
51
|
+
- name: Single filer in tier 2 (above adjusted base)
|
|
52
|
+
period: 2024
|
|
53
|
+
input:
|
|
54
|
+
people:
|
|
55
|
+
person1:
|
|
56
|
+
age: 67
|
|
57
|
+
social_security: 30_000
|
|
58
|
+
employment_income: 50_000
|
|
59
|
+
tax_units:
|
|
60
|
+
tax_unit:
|
|
61
|
+
members: [person1]
|
|
62
|
+
filing_status: SINGLE
|
|
63
|
+
households:
|
|
64
|
+
household:
|
|
65
|
+
members: [person1]
|
|
66
|
+
output:
|
|
67
|
+
# Combined income = $50K + $15K = $65K > $34K adjusted_base
|
|
68
|
+
# Tier 1 in tier 2 = bracket_amount
|
|
69
|
+
# bracket_amount = min(amount_under_para_1, 0.5 * ($34K - $25K))
|
|
70
|
+
# = min(min($15K, 0.5*$40K), $4.5K)
|
|
71
|
+
# = min(min($15K, $20K), $4.5K) = $4,500
|
|
72
|
+
taxable_social_security_tier_1: 4_500
|
|
73
|
+
|
|
74
|
+
- name: Joint filers below base threshold
|
|
75
|
+
period: 2024
|
|
76
|
+
input:
|
|
77
|
+
people:
|
|
78
|
+
person1:
|
|
79
|
+
age: 67
|
|
80
|
+
social_security: 20_000
|
|
81
|
+
person2:
|
|
82
|
+
age: 65
|
|
83
|
+
tax_units:
|
|
84
|
+
tax_unit:
|
|
85
|
+
members: [person1, person2]
|
|
86
|
+
filing_status: JOINT
|
|
87
|
+
households:
|
|
88
|
+
household:
|
|
89
|
+
members: [person1, person2]
|
|
90
|
+
output:
|
|
91
|
+
# Combined income = $0 + $10K (half SS) = $10K < $32K base
|
|
92
|
+
taxable_social_security_tier_1: 0
|
|
93
|
+
|
|
94
|
+
- name: Joint filers in tier 1 only
|
|
95
|
+
period: 2024
|
|
96
|
+
input:
|
|
97
|
+
people:
|
|
98
|
+
person1:
|
|
99
|
+
age: 67
|
|
100
|
+
social_security: 24_000
|
|
101
|
+
employment_income: 20_000
|
|
102
|
+
person2:
|
|
103
|
+
age: 65
|
|
104
|
+
tax_units:
|
|
105
|
+
tax_unit:
|
|
106
|
+
members: [person1, person2]
|
|
107
|
+
filing_status: JOINT
|
|
108
|
+
households:
|
|
109
|
+
household:
|
|
110
|
+
members: [person1, person2]
|
|
111
|
+
output:
|
|
112
|
+
# Combined income = $20K + $12K (half SS) = $32K
|
|
113
|
+
# $32K = $32K base threshold → just at threshold
|
|
114
|
+
# Excess = $32K - $32K = $0
|
|
115
|
+
taxable_social_security_tier_1: 0
|
|
116
|
+
|
|
117
|
+
- name: Joint filers slightly above base threshold
|
|
118
|
+
period: 2024
|
|
119
|
+
input:
|
|
120
|
+
people:
|
|
121
|
+
person1:
|
|
122
|
+
age: 67
|
|
123
|
+
social_security: 24_000
|
|
124
|
+
employment_income: 25_000
|
|
125
|
+
person2:
|
|
126
|
+
age: 65
|
|
127
|
+
tax_units:
|
|
128
|
+
tax_unit:
|
|
129
|
+
members: [person1, person2]
|
|
130
|
+
filing_status: JOINT
|
|
131
|
+
households:
|
|
132
|
+
household:
|
|
133
|
+
members: [person1, person2]
|
|
134
|
+
output:
|
|
135
|
+
# Combined income = $25K + $12K = $37K
|
|
136
|
+
# $37K > $32K base but < $44K adjusted → tier 1 only
|
|
137
|
+
# Tier 1 = min(0.5 * $24K, 0.5 * ($37K - $32K))
|
|
138
|
+
# = min($12K, $2.5K) = $2,500
|
|
139
|
+
taxable_social_security_tier_1: 2_500
|
|
140
|
+
|
|
141
|
+
- name: Zero social security benefits
|
|
142
|
+
period: 2024
|
|
143
|
+
input:
|
|
144
|
+
people:
|
|
145
|
+
person1:
|
|
146
|
+
age: 67
|
|
147
|
+
social_security: 0
|
|
148
|
+
employment_income: 100_000
|
|
149
|
+
tax_units:
|
|
150
|
+
tax_unit:
|
|
151
|
+
members: [person1]
|
|
152
|
+
filing_status: SINGLE
|
|
153
|
+
households:
|
|
154
|
+
household:
|
|
155
|
+
members: [person1]
|
|
156
|
+
output:
|
|
157
|
+
taxable_social_security_tier_1: 0
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Unit tests for taxable_social_security_tier_2
|
|
2
|
+
# Tests the tier 2 (50-85%) taxation of Social Security benefits
|
|
3
|
+
# Reference: IRC §86(a)(2)
|
|
4
|
+
# Tier 2 = total_taxable_ss - tier_1
|
|
5
|
+
|
|
6
|
+
- name: Below base threshold - no tier 2
|
|
7
|
+
period: 2024
|
|
8
|
+
input:
|
|
9
|
+
people:
|
|
10
|
+
person1:
|
|
11
|
+
age: 67
|
|
12
|
+
social_security: 20_000
|
|
13
|
+
employment_income: 10_000
|
|
14
|
+
tax_units:
|
|
15
|
+
tax_unit:
|
|
16
|
+
members: [person1]
|
|
17
|
+
filing_status: SINGLE
|
|
18
|
+
households:
|
|
19
|
+
household:
|
|
20
|
+
members: [person1]
|
|
21
|
+
output:
|
|
22
|
+
# No taxable SS at all → tier 2 = 0
|
|
23
|
+
taxable_social_security_tier_2: 0
|
|
24
|
+
|
|
25
|
+
- name: In tier 1 only - no tier 2
|
|
26
|
+
period: 2024
|
|
27
|
+
input:
|
|
28
|
+
people:
|
|
29
|
+
person1:
|
|
30
|
+
age: 67
|
|
31
|
+
social_security: 20_000
|
|
32
|
+
employment_income: 20_000
|
|
33
|
+
tax_units:
|
|
34
|
+
tax_unit:
|
|
35
|
+
members: [person1]
|
|
36
|
+
filing_status: SINGLE
|
|
37
|
+
households:
|
|
38
|
+
household:
|
|
39
|
+
members: [person1]
|
|
40
|
+
output:
|
|
41
|
+
# In tier 1 only, total taxable = tier 1 = $2,500
|
|
42
|
+
# Tier 2 = $2,500 - $2,500 = $0
|
|
43
|
+
taxable_social_security_tier_2: 0
|
|
44
|
+
|
|
45
|
+
- name: In tier 2 - significant tier 2 amount
|
|
46
|
+
period: 2024
|
|
47
|
+
input:
|
|
48
|
+
people:
|
|
49
|
+
person1:
|
|
50
|
+
age: 67
|
|
51
|
+
social_security: 30_000
|
|
52
|
+
employment_income: 50_000
|
|
53
|
+
tax_units:
|
|
54
|
+
tax_unit:
|
|
55
|
+
members: [person1]
|
|
56
|
+
filing_status: SINGLE
|
|
57
|
+
households:
|
|
58
|
+
household:
|
|
59
|
+
members: [person1]
|
|
60
|
+
output:
|
|
61
|
+
# Total taxable = 85% * $30K = $25,500
|
|
62
|
+
# Tier 1 = $4,500 (bracket amount)
|
|
63
|
+
# Tier 2 = $25,500 - $4,500 = $21,000
|
|
64
|
+
taxable_social_security_tier_2: 21_000
|
|
65
|
+
|
|
66
|
+
- name: Zero social security - no tier 2
|
|
67
|
+
period: 2024
|
|
68
|
+
input:
|
|
69
|
+
people:
|
|
70
|
+
person1:
|
|
71
|
+
age: 67
|
|
72
|
+
social_security: 0
|
|
73
|
+
employment_income: 100_000
|
|
74
|
+
tax_units:
|
|
75
|
+
tax_unit:
|
|
76
|
+
members: [person1]
|
|
77
|
+
filing_status: SINGLE
|
|
78
|
+
households:
|
|
79
|
+
household:
|
|
80
|
+
members: [person1]
|
|
81
|
+
output:
|
|
82
|
+
taxable_social_security_tier_2: 0
|
|
83
|
+
|
|
84
|
+
- name: Joint filers in tier 2
|
|
85
|
+
period: 2024
|
|
86
|
+
input:
|
|
87
|
+
people:
|
|
88
|
+
person1:
|
|
89
|
+
age: 67
|
|
90
|
+
social_security: 40_000
|
|
91
|
+
employment_income: 60_000
|
|
92
|
+
person2:
|
|
93
|
+
age: 65
|
|
94
|
+
tax_units:
|
|
95
|
+
tax_unit:
|
|
96
|
+
members: [person1, person2]
|
|
97
|
+
filing_status: JOINT
|
|
98
|
+
households:
|
|
99
|
+
household:
|
|
100
|
+
members: [person1, person2]
|
|
101
|
+
output:
|
|
102
|
+
# Combined income = $60K + $20K (half SS) = $80K > $44K adjusted
|
|
103
|
+
# Total taxable = 85% * $40K = $34,000
|
|
104
|
+
# Tier 1 = bracket = min(..., 0.5 * ($44K - $32K)) = $6,000
|
|
105
|
+
# Tier 2 = $34,000 - $6,000 = $28,000
|
|
106
|
+
taxable_social_security_tier_2: 28_000
|
policyengine_us/tests/policy/baseline/gov/ssa/revenue/employer_medicare_tax_income_tax_revenue.yaml
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Unit tests for employer_medicare_tax_income_tax_revenue
|
|
2
|
+
# Tests Medicare HI trust fund revenue from taxing employer Medicare contributions
|
|
3
|
+
|
|
4
|
+
- name: Reform not active - zero revenue
|
|
5
|
+
period: 2024
|
|
6
|
+
input:
|
|
7
|
+
people:
|
|
8
|
+
person1:
|
|
9
|
+
age: 40
|
|
10
|
+
employment_income: 100_000
|
|
11
|
+
tax_units:
|
|
12
|
+
tax_unit:
|
|
13
|
+
members: [person1]
|
|
14
|
+
households:
|
|
15
|
+
household:
|
|
16
|
+
members: [person1]
|
|
17
|
+
output:
|
|
18
|
+
employer_medicare_tax_income_tax_revenue: 0
|
|
19
|
+
|
|
20
|
+
- name: Reform active - basic case
|
|
21
|
+
period: 2024
|
|
22
|
+
absolute_error_margin: 10
|
|
23
|
+
reforms: policyengine_us.reforms.crfb.tax_employer_payroll_tax.tax_employer_payroll_tax_reform_object
|
|
24
|
+
input:
|
|
25
|
+
gov.contrib.crfb.tax_employer_payroll_tax.in_effect: true
|
|
26
|
+
gov.contrib.crfb.tax_employer_payroll_tax.percentage: 1.0
|
|
27
|
+
people:
|
|
28
|
+
person1:
|
|
29
|
+
age: 40
|
|
30
|
+
employment_income: 50_000
|
|
31
|
+
tax_units:
|
|
32
|
+
tax_unit:
|
|
33
|
+
members: [person1]
|
|
34
|
+
households:
|
|
35
|
+
household:
|
|
36
|
+
members: [person1]
|
|
37
|
+
output:
|
|
38
|
+
# Employer Medicare tax = 1.45% * $50,000 = $725
|
|
39
|
+
employer_medicare_tax: 725
|
|
40
|
+
employer_medicare_tax_income_tax_revenue: 87
|
|
41
|
+
|
|
42
|
+
- name: Reform active - high income
|
|
43
|
+
period: 2024
|
|
44
|
+
absolute_error_margin: 50
|
|
45
|
+
reforms: policyengine_us.reforms.crfb.tax_employer_payroll_tax.tax_employer_payroll_tax_reform_object
|
|
46
|
+
input:
|
|
47
|
+
gov.contrib.crfb.tax_employer_payroll_tax.in_effect: true
|
|
48
|
+
gov.contrib.crfb.tax_employer_payroll_tax.percentage: 1.0
|
|
49
|
+
people:
|
|
50
|
+
person1:
|
|
51
|
+
age: 40
|
|
52
|
+
employment_income: 150_000
|
|
53
|
+
tax_units:
|
|
54
|
+
tax_unit:
|
|
55
|
+
members: [person1]
|
|
56
|
+
households:
|
|
57
|
+
household:
|
|
58
|
+
members: [person1]
|
|
59
|
+
output:
|
|
60
|
+
# Employer Medicare tax = 1.45% * $150,000 = $2,175
|
|
61
|
+
# At 22% marginal rate, revenue ~ $479
|
|
62
|
+
employer_medicare_tax: 2_175
|
|
63
|
+
employer_medicare_tax_income_tax_revenue: 479
|
|
64
|
+
|
|
65
|
+
- name: Reform active - partial percentage
|
|
66
|
+
period: 2024
|
|
67
|
+
absolute_error_margin: 10
|
|
68
|
+
reforms: policyengine_us.reforms.crfb.tax_employer_payroll_tax.tax_employer_payroll_tax_reform_object
|
|
69
|
+
input:
|
|
70
|
+
gov.contrib.crfb.tax_employer_payroll_tax.in_effect: true
|
|
71
|
+
gov.contrib.crfb.tax_employer_payroll_tax.percentage: 0.5
|
|
72
|
+
people:
|
|
73
|
+
person1:
|
|
74
|
+
age: 40
|
|
75
|
+
employment_income: 50_000
|
|
76
|
+
tax_units:
|
|
77
|
+
tax_unit:
|
|
78
|
+
members: [person1]
|
|
79
|
+
households:
|
|
80
|
+
household:
|
|
81
|
+
members: [person1]
|
|
82
|
+
output:
|
|
83
|
+
# Employer Medicare tax = 1.45% * $50,000 = $725
|
|
84
|
+
# Only 50% taxable = $362.50
|
|
85
|
+
employer_medicare_tax: 725
|
|
86
|
+
employer_medicare_tax_income_tax_revenue: 44
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Unit tests for employer_ss_tax_income_tax_revenue
|
|
2
|
+
# Tests OASDI trust fund revenue from taxing employer SS contributions
|
|
3
|
+
|
|
4
|
+
- name: Reform not active - zero revenue
|
|
5
|
+
period: 2024
|
|
6
|
+
input:
|
|
7
|
+
people:
|
|
8
|
+
person1:
|
|
9
|
+
age: 40
|
|
10
|
+
employment_income: 100_000
|
|
11
|
+
tax_units:
|
|
12
|
+
tax_unit:
|
|
13
|
+
members: [person1]
|
|
14
|
+
households:
|
|
15
|
+
household:
|
|
16
|
+
members: [person1]
|
|
17
|
+
output:
|
|
18
|
+
employer_ss_tax_income_tax_revenue: 0
|
|
19
|
+
|
|
20
|
+
- name: Reform active - basic case
|
|
21
|
+
period: 2024
|
|
22
|
+
absolute_error_margin: 10
|
|
23
|
+
reforms: policyengine_us.reforms.crfb.tax_employer_payroll_tax.tax_employer_payroll_tax_reform_object
|
|
24
|
+
input:
|
|
25
|
+
gov.contrib.crfb.tax_employer_payroll_tax.in_effect: true
|
|
26
|
+
gov.contrib.crfb.tax_employer_payroll_tax.percentage: 1.0
|
|
27
|
+
people:
|
|
28
|
+
person1:
|
|
29
|
+
age: 40
|
|
30
|
+
employment_income: 50_000
|
|
31
|
+
tax_units:
|
|
32
|
+
tax_unit:
|
|
33
|
+
members: [person1]
|
|
34
|
+
households:
|
|
35
|
+
household:
|
|
36
|
+
members: [person1]
|
|
37
|
+
output:
|
|
38
|
+
# Employer SS tax = 6.2% * $50,000 = $3,100
|
|
39
|
+
employer_social_security_tax: 3_100
|
|
40
|
+
employer_ss_tax_income_tax_revenue: 372
|
|
41
|
+
|
|
42
|
+
- name: Reform active - high income
|
|
43
|
+
period: 2024
|
|
44
|
+
absolute_error_margin: 10
|
|
45
|
+
reforms: policyengine_us.reforms.crfb.tax_employer_payroll_tax.tax_employer_payroll_tax_reform_object
|
|
46
|
+
input:
|
|
47
|
+
gov.contrib.crfb.tax_employer_payroll_tax.in_effect: true
|
|
48
|
+
gov.contrib.crfb.tax_employer_payroll_tax.percentage: 1.0
|
|
49
|
+
people:
|
|
50
|
+
person1:
|
|
51
|
+
age: 40
|
|
52
|
+
employment_income: 150_000
|
|
53
|
+
tax_units:
|
|
54
|
+
tax_unit:
|
|
55
|
+
members: [person1]
|
|
56
|
+
households:
|
|
57
|
+
household:
|
|
58
|
+
members: [person1]
|
|
59
|
+
output:
|
|
60
|
+
# Employer SS tax = 6.2% * $150,000 = $9,300
|
|
61
|
+
employer_social_security_tax: 9_300
|
|
62
|
+
employer_ss_tax_income_tax_revenue: 2_232
|
|
63
|
+
|
|
64
|
+
- name: Reform active - partial percentage
|
|
65
|
+
period: 2024
|
|
66
|
+
absolute_error_margin: 10
|
|
67
|
+
reforms: policyengine_us.reforms.crfb.tax_employer_payroll_tax.tax_employer_payroll_tax_reform_object
|
|
68
|
+
input:
|
|
69
|
+
gov.contrib.crfb.tax_employer_payroll_tax.in_effect: true
|
|
70
|
+
gov.contrib.crfb.tax_employer_payroll_tax.percentage: 0.5
|
|
71
|
+
people:
|
|
72
|
+
person1:
|
|
73
|
+
age: 40
|
|
74
|
+
employment_income: 50_000
|
|
75
|
+
tax_units:
|
|
76
|
+
tax_unit:
|
|
77
|
+
members: [person1]
|
|
78
|
+
households:
|
|
79
|
+
household:
|
|
80
|
+
members: [person1]
|
|
81
|
+
output:
|
|
82
|
+
# Employer SS tax = 6.2% * $50,000 = $3,100
|
|
83
|
+
# Only 50% taxable = $1,550
|
|
84
|
+
employer_social_security_tax: 3_100
|
|
85
|
+
employer_ss_tax_income_tax_revenue: 186
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Unit tests for tob_revenue_medicare_hi
|
|
2
|
+
# Tests Medicare HI trust fund revenue allocation from SS benefit taxation
|
|
3
|
+
# Uses double-branching methodology per 42 U.S.C. 401 note
|
|
4
|
+
|
|
5
|
+
- name: No SS benefits - zero Medicare revenue
|
|
6
|
+
period: 2024
|
|
7
|
+
input:
|
|
8
|
+
people:
|
|
9
|
+
person1:
|
|
10
|
+
age: 67
|
|
11
|
+
social_security: 0
|
|
12
|
+
employment_income: 100_000
|
|
13
|
+
tax_units:
|
|
14
|
+
tax_unit:
|
|
15
|
+
members: [person1]
|
|
16
|
+
filing_status: SINGLE
|
|
17
|
+
households:
|
|
18
|
+
household:
|
|
19
|
+
members: [person1]
|
|
20
|
+
output:
|
|
21
|
+
tob_revenue_medicare_hi: 0
|
|
22
|
+
|
|
23
|
+
- name: Below threshold - zero Medicare revenue
|
|
24
|
+
period: 2024
|
|
25
|
+
input:
|
|
26
|
+
people:
|
|
27
|
+
person1:
|
|
28
|
+
age: 67
|
|
29
|
+
social_security: 20_000
|
|
30
|
+
employment_income: 10_000
|
|
31
|
+
tax_units:
|
|
32
|
+
tax_unit:
|
|
33
|
+
members: [person1]
|
|
34
|
+
filing_status: SINGLE
|
|
35
|
+
households:
|
|
36
|
+
household:
|
|
37
|
+
members: [person1]
|
|
38
|
+
output:
|
|
39
|
+
tob_revenue_medicare_hi: 0
|
|
40
|
+
|
|
41
|
+
- name: Tier 1 only - zero Medicare revenue
|
|
42
|
+
period: 2024
|
|
43
|
+
input:
|
|
44
|
+
people:
|
|
45
|
+
person1:
|
|
46
|
+
age: 67
|
|
47
|
+
social_security: 20_000
|
|
48
|
+
employment_income: 20_000
|
|
49
|
+
tax_units:
|
|
50
|
+
tax_unit:
|
|
51
|
+
members: [person1]
|
|
52
|
+
filing_status: SINGLE
|
|
53
|
+
households:
|
|
54
|
+
household:
|
|
55
|
+
members: [person1]
|
|
56
|
+
output:
|
|
57
|
+
# Taxable SS <= 50% of gross, all goes to OASDI
|
|
58
|
+
tob_revenue_medicare_hi: 0
|
|
59
|
+
|
|
60
|
+
- name: High income single - branching allocation
|
|
61
|
+
period: 2024
|
|
62
|
+
absolute_error_margin: 100
|
|
63
|
+
input:
|
|
64
|
+
people:
|
|
65
|
+
person1:
|
|
66
|
+
age: 67
|
|
67
|
+
social_security: 30_000
|
|
68
|
+
employment_income: 50_000
|
|
69
|
+
tax_units:
|
|
70
|
+
tax_unit:
|
|
71
|
+
members: [person1]
|
|
72
|
+
filing_status: SINGLE
|
|
73
|
+
households:
|
|
74
|
+
household:
|
|
75
|
+
members: [person1]
|
|
76
|
+
output:
|
|
77
|
+
# Using branching: HI gets marginal tax on portion above 50% of gross
|
|
78
|
+
tax_unit_taxable_social_security: 25_500
|
|
79
|
+
tob_revenue_total: 4_240
|
|
80
|
+
tob_revenue_oasdi: 1_930
|
|
81
|
+
tob_revenue_medicare_hi: 2_310
|
|
82
|
+
|
|
83
|
+
- name: Very high income - branching allocation
|
|
84
|
+
period: 2024
|
|
85
|
+
absolute_error_margin: 100
|
|
86
|
+
input:
|
|
87
|
+
people:
|
|
88
|
+
person1:
|
|
89
|
+
age: 67
|
|
90
|
+
social_security: 30_000
|
|
91
|
+
employment_income: 100_000
|
|
92
|
+
tax_units:
|
|
93
|
+
tax_unit:
|
|
94
|
+
members: [person1]
|
|
95
|
+
filing_status: SINGLE
|
|
96
|
+
households:
|
|
97
|
+
household:
|
|
98
|
+
members: [person1]
|
|
99
|
+
output:
|
|
100
|
+
# Higher marginal rates affect the split
|
|
101
|
+
tax_unit_taxable_social_security: 25_500
|
|
102
|
+
tob_revenue_total: 5_778
|
|
103
|
+
tob_revenue_oasdi: 3_300
|
|
104
|
+
tob_revenue_medicare_hi: 2_478
|
|
105
|
+
|
|
106
|
+
- name: Zero taxable SS - zero revenue
|
|
107
|
+
period: 2024
|
|
108
|
+
input:
|
|
109
|
+
people:
|
|
110
|
+
person1:
|
|
111
|
+
age: 67
|
|
112
|
+
social_security: 15_000
|
|
113
|
+
employment_income: 5_000
|
|
114
|
+
tax_units:
|
|
115
|
+
tax_unit:
|
|
116
|
+
members: [person1]
|
|
117
|
+
filing_status: SINGLE
|
|
118
|
+
households:
|
|
119
|
+
household:
|
|
120
|
+
members: [person1]
|
|
121
|
+
output:
|
|
122
|
+
tax_unit_taxable_social_security: 0
|
|
123
|
+
tob_revenue_oasdi: 0
|
|
124
|
+
tob_revenue_medicare_hi: 0
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Unit tests for tob_revenue_oasdi
|
|
2
|
+
# Tests OASDI trust fund revenue allocation from SS benefit taxation
|
|
3
|
+
# Uses double-branching methodology per 42 U.S.C. 401 note
|
|
4
|
+
|
|
5
|
+
- name: No SS benefits - zero OASDI revenue
|
|
6
|
+
period: 2024
|
|
7
|
+
input:
|
|
8
|
+
people:
|
|
9
|
+
person1:
|
|
10
|
+
age: 67
|
|
11
|
+
social_security: 0
|
|
12
|
+
employment_income: 100_000
|
|
13
|
+
tax_units:
|
|
14
|
+
tax_unit:
|
|
15
|
+
members: [person1]
|
|
16
|
+
filing_status: SINGLE
|
|
17
|
+
households:
|
|
18
|
+
household:
|
|
19
|
+
members: [person1]
|
|
20
|
+
output:
|
|
21
|
+
tob_revenue_oasdi: 0
|
|
22
|
+
|
|
23
|
+
- name: Below threshold - zero OASDI revenue
|
|
24
|
+
period: 2024
|
|
25
|
+
input:
|
|
26
|
+
people:
|
|
27
|
+
person1:
|
|
28
|
+
age: 67
|
|
29
|
+
social_security: 20_000
|
|
30
|
+
employment_income: 10_000
|
|
31
|
+
tax_units:
|
|
32
|
+
tax_unit:
|
|
33
|
+
members: [person1]
|
|
34
|
+
filing_status: SINGLE
|
|
35
|
+
households:
|
|
36
|
+
household:
|
|
37
|
+
members: [person1]
|
|
38
|
+
output:
|
|
39
|
+
# Combined income below threshold - no taxable SS
|
|
40
|
+
tob_revenue_oasdi: 0
|
|
41
|
+
|
|
42
|
+
- name: Tier 1 only - all revenue to OASDI
|
|
43
|
+
period: 2024
|
|
44
|
+
absolute_error_margin: 10
|
|
45
|
+
input:
|
|
46
|
+
people:
|
|
47
|
+
person1:
|
|
48
|
+
age: 67
|
|
49
|
+
social_security: 20_000
|
|
50
|
+
employment_income: 20_000
|
|
51
|
+
tax_units:
|
|
52
|
+
tax_unit:
|
|
53
|
+
members: [person1]
|
|
54
|
+
filing_status: SINGLE
|
|
55
|
+
households:
|
|
56
|
+
household:
|
|
57
|
+
members: [person1]
|
|
58
|
+
output:
|
|
59
|
+
# Taxable SS = $2,500 (in tier 1 only)
|
|
60
|
+
# Since taxable SS <= 50% of gross, all goes to OASDI
|
|
61
|
+
tax_unit_taxable_social_security: 2_500
|
|
62
|
+
tob_revenue_oasdi: 250
|
|
63
|
+
tob_revenue_medicare_hi: 0
|
|
64
|
+
|
|
65
|
+
- name: High income single - branching allocation
|
|
66
|
+
period: 2024
|
|
67
|
+
absolute_error_margin: 100
|
|
68
|
+
input:
|
|
69
|
+
people:
|
|
70
|
+
person1:
|
|
71
|
+
age: 67
|
|
72
|
+
social_security: 30_000
|
|
73
|
+
employment_income: 50_000
|
|
74
|
+
tax_units:
|
|
75
|
+
tax_unit:
|
|
76
|
+
members: [person1]
|
|
77
|
+
filing_status: SINGLE
|
|
78
|
+
households:
|
|
79
|
+
household:
|
|
80
|
+
members: [person1]
|
|
81
|
+
output:
|
|
82
|
+
# Using branching: OASDI gets marginal tax on first 50% of gross
|
|
83
|
+
tax_unit_taxable_social_security: 25_500
|
|
84
|
+
tob_revenue_total: 4_240
|
|
85
|
+
tob_revenue_oasdi: 1_930
|
|
86
|
+
tob_revenue_medicare_hi: 2_310
|
|
87
|
+
|
|
88
|
+
- name: Very high income - branching allocation
|
|
89
|
+
period: 2024
|
|
90
|
+
absolute_error_margin: 100
|
|
91
|
+
input:
|
|
92
|
+
people:
|
|
93
|
+
person1:
|
|
94
|
+
age: 67
|
|
95
|
+
social_security: 30_000
|
|
96
|
+
employment_income: 100_000
|
|
97
|
+
tax_units:
|
|
98
|
+
tax_unit:
|
|
99
|
+
members: [person1]
|
|
100
|
+
filing_status: SINGLE
|
|
101
|
+
households:
|
|
102
|
+
household:
|
|
103
|
+
members: [person1]
|
|
104
|
+
output:
|
|
105
|
+
# Higher marginal rates affect the split
|
|
106
|
+
tax_unit_taxable_social_security: 25_500
|
|
107
|
+
tob_revenue_total: 5_778
|
|
108
|
+
tob_revenue_oasdi: 3_300
|
|
109
|
+
tob_revenue_medicare_hi: 2_478
|
|
110
|
+
|
|
111
|
+
- name: Zero taxable SS - zero revenue
|
|
112
|
+
period: 2024
|
|
113
|
+
input:
|
|
114
|
+
people:
|
|
115
|
+
person1:
|
|
116
|
+
age: 67
|
|
117
|
+
social_security: 15_000
|
|
118
|
+
employment_income: 5_000
|
|
119
|
+
tax_units:
|
|
120
|
+
tax_unit:
|
|
121
|
+
members: [person1]
|
|
122
|
+
filing_status: SINGLE
|
|
123
|
+
households:
|
|
124
|
+
household:
|
|
125
|
+
members: [person1]
|
|
126
|
+
output:
|
|
127
|
+
tax_unit_taxable_social_security: 0
|
|
128
|
+
tob_revenue_oasdi: 0
|
|
129
|
+
tob_revenue_medicare_hi: 0
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
- name: TOB revenue - single retiree with SS and wages
|
|
2
|
+
period: 2024
|
|
3
|
+
absolute_error_margin: 100
|
|
4
|
+
input:
|
|
5
|
+
people:
|
|
6
|
+
person1:
|
|
7
|
+
age: 67
|
|
8
|
+
social_security: 30_000
|
|
9
|
+
employment_income: 50_000
|
|
10
|
+
tax_units:
|
|
11
|
+
tax_unit:
|
|
12
|
+
members: [person1]
|
|
13
|
+
filing_status: SINGLE
|
|
14
|
+
households:
|
|
15
|
+
household:
|
|
16
|
+
members: [person1]
|
|
17
|
+
output:
|
|
18
|
+
# Actual value is around $4,240
|
|
19
|
+
tob_revenue_total: 4_240
|