policyengine-us 1.447.0__py3-none-any.whl → 1.449.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.
Files changed (51) hide show
  1. policyengine_us/parameters/calibration/gov/hhs/medicare/per_capita_cost.yaml +12 -0
  2. policyengine_us/parameters/gov/hhs/medicare/part_a/deductible.yaml +13 -0
  3. policyengine_us/parameters/gov/hhs/medicare/part_a/default_quarters_of_coverage.yaml +10 -0
  4. policyengine_us/parameters/gov/hhs/medicare/part_a/full_premium.yaml +13 -0
  5. policyengine_us/parameters/gov/hhs/medicare/part_a/premium_free_quarters_threshold.yaml +10 -0
  6. policyengine_us/parameters/gov/hhs/medicare/part_a/reduced_premium.yaml +13 -0
  7. policyengine_us/parameters/gov/hhs/medicare/part_a/reduced_premium_quarters_threshold.yaml +10 -0
  8. policyengine_us/parameters/gov/hhs/medicare/part_b/base_premium.yaml +16 -0
  9. policyengine_us/parameters/gov/hhs/medicare/part_b/irmaa/head_of_household.yaml +50 -0
  10. policyengine_us/parameters/gov/hhs/medicare/part_b/irmaa/joint.yaml +49 -0
  11. policyengine_us/parameters/gov/hhs/medicare/part_b/irmaa/separate.yaml +30 -0
  12. policyengine_us/parameters/gov/hhs/medicare/part_b/irmaa/single.yaml +50 -0
  13. policyengine_us/parameters/gov/hhs/medicare/part_b/irmaa/surviving_spouse.yaml +49 -0
  14. policyengine_us/parameters/gov/states/wa/dshs/tanf/income/deductions/earned_income_disregard/amount.yaml +14 -0
  15. policyengine_us/parameters/gov/states/wa/dshs/tanf/income/deductions/earned_income_disregard/percentage_disregarded.yaml +14 -0
  16. policyengine_us/parameters/gov/states/wa/dshs/tanf/income/limit.yaml +36 -0
  17. policyengine_us/parameters/gov/states/wa/dshs/tanf/maximum_family_size.yaml +14 -0
  18. policyengine_us/parameters/gov/states/wa/dshs/tanf/payment_standard/amount.yaml +32 -0
  19. policyengine_us/parameters/gov/states/wa/dshs/tanf/payment_standard/maximum_amount.yaml +12 -0
  20. policyengine_us/parameters/gov/states/wa/dshs/tanf/resource_limit.yaml +15 -0
  21. policyengine_us/tests/policy/baseline/gov/hhs/medicare/costs/medicare_cost.yaml +65 -0
  22. policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/base_part_a_premium.yaml +35 -0
  23. policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/base_part_b_premium.yaml +15 -0
  24. policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/income_adjusted_part_b_premium.yaml +77 -0
  25. policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/benefit/wa_tanf_payment_standard.yaml +48 -0
  26. policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/eligibility/wa_tanf_eligible.yaml +65 -0
  27. policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/eligibility/wa_tanf_income_eligible.yaml +96 -0
  28. policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/income/wa_tanf_countable_earned_income.yaml +70 -0
  29. policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/integration.yaml +676 -0
  30. policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/wa_tanf.yaml +102 -0
  31. policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/wa_tanf_resources_eligible.yaml +6 -7
  32. policyengine_us/variables/gov/hhs/medicare/costs/medicare_cost.py +30 -0
  33. policyengine_us/variables/gov/hhs/medicare/costs/medicare_enrolled.py +14 -0
  34. policyengine_us/variables/gov/hhs/medicare/eligibility/part_a/base_part_a_premium.py +32 -0
  35. policyengine_us/variables/gov/hhs/medicare/eligibility/part_a/is_premium_free_part_a.py +22 -0
  36. policyengine_us/variables/gov/hhs/medicare/eligibility/part_a/medicare_quarters_of_coverage.py +16 -0
  37. policyengine_us/variables/gov/hhs/medicare/eligibility/part_b/base_part_b_premium.py +16 -0
  38. policyengine_us/variables/gov/hhs/medicare/eligibility/part_b/income_adjusted_part_b_premium.py +55 -0
  39. policyengine_us/variables/gov/states/wa/dshs/tanf/benefit/wa_tanf_payment_standard.py +22 -0
  40. policyengine_us/variables/gov/states/wa/dshs/tanf/eligibility/wa_tanf_eligible.py +42 -0
  41. policyengine_us/variables/gov/states/wa/dshs/tanf/eligibility/wa_tanf_income_eligible.py +31 -0
  42. policyengine_us/variables/gov/states/wa/dshs/tanf/income/wa_tanf_countable_earned_income.py +33 -0
  43. policyengine_us/variables/gov/states/wa/dshs/tanf/income/wa_tanf_countable_income.py +16 -0
  44. policyengine_us/variables/gov/states/wa/dshs/tanf/wa_tanf.py +34 -0
  45. policyengine_us/variables/gov/states/wa/dshs/tanf/wa_tanf_resources_eligible.py +3 -2
  46. {policyengine_us-1.447.0.dist-info → policyengine_us-1.449.0.dist-info}/METADATA +1 -1
  47. {policyengine_us-1.447.0.dist-info → policyengine_us-1.449.0.dist-info}/RECORD +50 -8
  48. policyengine_us/parameters/gov/states/wa/dshs/tanf/eligibility/resources/limit.yaml +0 -11
  49. {policyengine_us-1.447.0.dist-info → policyengine_us-1.449.0.dist-info}/WHEEL +0 -0
  50. {policyengine_us-1.447.0.dist-info → policyengine_us-1.449.0.dist-info}/entry_points.txt +0 -0
  51. {policyengine_us-1.447.0.dist-info → policyengine_us-1.449.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,77 @@
1
+ - name: unit test 1 - surviving spouse, no extra premium
2
+ period: 2025
3
+ input:
4
+ age: 65
5
+ filing_status: SURVIVING_SPOUSE
6
+ adjusted_gross_income:
7
+ 2023: 80_000 # IRMAA uses income from 2 years prior
8
+ tax_exempt_interest_income:
9
+ 2023: 0
10
+ is_medicare_eligible: true
11
+ output:
12
+ income_adjusted_part_b_premium: 2_220 # $185 * 12 months
13
+
14
+ - name: unit test 2 - married, extra premium
15
+ period: 2025
16
+ input:
17
+ age: 65
18
+ filing_status: JOINT
19
+ adjusted_gross_income:
20
+ 2023: 266_001 # IRMAA uses income from 2 years prior
21
+ tax_exempt_interest_income:
22
+ 2023: 0
23
+ is_medicare_eligible: true
24
+ output:
25
+ income_adjusted_part_b_premium: 4_440 # $370 * 12 months
26
+
27
+ - name: unit test 3 - single, extra premium
28
+ period: 2025
29
+ input:
30
+ age: 65
31
+ filing_status: SINGLE
32
+ adjusted_gross_income:
33
+ 2023: 500_000 # IRMAA uses income from 2 years prior
34
+ tax_exempt_interest_income:
35
+ 2023: 0
36
+ is_medicare_eligible: true
37
+ output:
38
+ income_adjusted_part_b_premium: 7_546.8 # $628.90 * 12 months
39
+
40
+ - name: unit test 4 - HOH, extra premium
41
+ period: 2025
42
+ input:
43
+ age: 65
44
+ filing_status: SURVIVING_SPOUSE
45
+ adjusted_gross_income:
46
+ 2023: 106_002 # IRMAA uses income from 2 years prior
47
+ tax_exempt_interest_income:
48
+ 2023: 0
49
+ is_medicare_eligible: true
50
+ output:
51
+ income_adjusted_part_b_premium: 3_108 # $259 * 12 months
52
+
53
+ - name: unit test 5 - married, no extra premium
54
+ period: 2025
55
+ input:
56
+ age: 65
57
+ filing_status: JOINT
58
+ adjusted_gross_income:
59
+ 2023: 200_000 # IRMAA uses income from 2 years prior
60
+ tax_exempt_interest_income:
61
+ 2023: 0
62
+ is_medicare_eligible: true
63
+ output:
64
+ income_adjusted_part_b_premium: 2_220 # $185 * 12 months
65
+
66
+ - name: unit test 6 - married, extra premium, rich
67
+ period: 2025
68
+ input:
69
+ age: 65
70
+ filing_status: JOINT
71
+ adjusted_gross_income:
72
+ 2023: 1_000_000 # IRMAA uses income from 2 years prior
73
+ tax_exempt_interest_income:
74
+ 2023: 0
75
+ is_medicare_eligible: true
76
+ output:
77
+ income_adjusted_part_b_premium: 7_546.8 # $628.90 * 12 months
@@ -0,0 +1,48 @@
1
+ - name: Family size 1 - payment standard
2
+ period: 2024-01
3
+ input:
4
+ state_code: WA
5
+ spm_unit_size: 1
6
+ output:
7
+ wa_tanf_payment_standard: 450
8
+
9
+ - name: Family size 2 - payment standard
10
+ period: 2024-01
11
+ input:
12
+ state_code: WA
13
+ spm_unit_size: 2
14
+ output:
15
+ wa_tanf_payment_standard: 570
16
+
17
+ - name: Family size 5 - payment standard
18
+ period: 2024-01
19
+ input:
20
+ state_code: WA
21
+ spm_unit_size: 5
22
+ output:
23
+ wa_tanf_payment_standard: 959
24
+
25
+ - name: Family size 10 - maximum payment standard
26
+ period: 2024-01
27
+ input:
28
+ state_code: WA
29
+ spm_unit_size: 10
30
+ output:
31
+ wa_tanf_payment_standard: 1_662
32
+
33
+ - name: Family size 15 - capped at size 10
34
+ period: 2024-01
35
+ input:
36
+ state_code: WA
37
+ spm_unit_size: 15
38
+ output:
39
+ # Payment standard capped at size 10
40
+ wa_tanf_payment_standard: 1_662
41
+
42
+ - name: Only calculate for WA
43
+ period: 2024-01
44
+ input:
45
+ state_code: CA
46
+ spm_unit_size: 3
47
+ output:
48
+ wa_tanf_payment_standard: 0
@@ -0,0 +1,65 @@
1
+ - name: All requirements met - eligible
2
+ period: 2024-01
3
+ input:
4
+ state_code: WA
5
+ is_demographic_tanf_eligible: true
6
+ is_citizen_or_legal_immigrant: true
7
+ wa_tanf_income_eligible: true
8
+ wa_tanf_resources_eligible: true
9
+ output:
10
+ wa_tanf_eligible: true
11
+
12
+ - name: Missing demographic eligibility - ineligible
13
+ period: 2024-01
14
+ input:
15
+ state_code: WA
16
+ is_demographic_tanf_eligible: false
17
+ is_citizen_or_legal_immigrant: true
18
+ wa_tanf_income_eligible: true
19
+ wa_tanf_resources_eligible: true
20
+ output:
21
+ wa_tanf_eligible: false
22
+
23
+ - name: Missing citizenship - ineligible
24
+ period: 2024-01
25
+ input:
26
+ state_code: WA
27
+ is_demographic_tanf_eligible: true
28
+ is_citizen_or_legal_immigrant: false
29
+ wa_tanf_income_eligible: true
30
+ wa_tanf_resources_eligible: true
31
+ output:
32
+ wa_tanf_eligible: false
33
+
34
+ - name: Income ineligible - ineligible
35
+ period: 2024-01
36
+ input:
37
+ state_code: WA
38
+ is_demographic_tanf_eligible: true
39
+ is_citizen_or_legal_immigrant: true
40
+ wa_tanf_income_eligible: false
41
+ wa_tanf_resources_eligible: true
42
+ output:
43
+ wa_tanf_eligible: false
44
+
45
+ - name: Resource ineligible - ineligible
46
+ period: 2024-01
47
+ input:
48
+ state_code: WA
49
+ is_demographic_tanf_eligible: true
50
+ is_citizen_or_legal_immigrant: true
51
+ wa_tanf_income_eligible: true
52
+ wa_tanf_resources_eligible: false
53
+ output:
54
+ wa_tanf_eligible: false
55
+
56
+ - name: Only calculate for WA
57
+ period: 2024-01
58
+ input:
59
+ state_code: ID
60
+ is_demographic_tanf_eligible: true
61
+ is_citizen_or_legal_immigrant: true
62
+ wa_tanf_income_eligible: true
63
+ wa_tanf_resources_eligible: true
64
+ output:
65
+ wa_tanf_eligible: false
@@ -0,0 +1,96 @@
1
+ - name: Zero gross earned income - eligible
2
+ period: 2024-01
3
+ input:
4
+ state_code: WA
5
+ spm_unit_size: 3
6
+ tanf_gross_earned_income: 0
7
+ output:
8
+ # Income limit for family of 3: $1,912
9
+ # Gross earned: $0 <= $1,912
10
+ wa_tanf_income_eligible: true
11
+
12
+ - name: Gross earned income below threshold - eligible
13
+ period: 2024-01
14
+ input:
15
+ state_code: WA
16
+ spm_unit_size: 3
17
+ tanf_gross_earned_income: 1_500
18
+ output:
19
+ # Income limit for family of 3: $1,912
20
+ # Gross earned: $1,500 <= $1,912
21
+ wa_tanf_income_eligible: true
22
+
23
+ - name: Gross earned income exactly at threshold - eligible
24
+ period: 2024-01
25
+ input:
26
+ state_code: WA
27
+ spm_unit_size: 3
28
+ tanf_gross_earned_income: 1_912
29
+ output:
30
+ # Income limit for family of 3: $1,912
31
+ # Gross earned: $1,912 <= $1,912
32
+ wa_tanf_income_eligible: true
33
+
34
+ - name: Gross earned income one dollar over threshold - ineligible
35
+ period: 2024-01
36
+ input:
37
+ state_code: WA
38
+ spm_unit_size: 3
39
+ tanf_gross_earned_income: 1_913
40
+ output:
41
+ # Income limit for family of 3: $1,912
42
+ # Gross earned: $1,913 > $1,912
43
+ wa_tanf_income_eligible: false
44
+
45
+ - name: Gross earned income far over threshold - ineligible
46
+ period: 2024-01
47
+ input:
48
+ state_code: WA
49
+ spm_unit_size: 3
50
+ tanf_gross_earned_income: 3_000
51
+ output:
52
+ # Income limit for family of 3: $1,912
53
+ # Gross earned: $3,000 > $1,912
54
+ wa_tanf_income_eligible: false
55
+
56
+ - name: Family size 1 - at threshold
57
+ period: 2024-01
58
+ input:
59
+ state_code: WA
60
+ spm_unit_size: 1
61
+ tanf_gross_earned_income: 1_400
62
+ output:
63
+ # Income limit for family of 1: $1,400
64
+ # Gross earned: $1,400 <= $1,400
65
+ wa_tanf_income_eligible: true
66
+
67
+ - name: Family size 10 - at maximum threshold
68
+ period: 2024-01
69
+ input:
70
+ state_code: WA
71
+ spm_unit_size: 10
72
+ tanf_gross_earned_income: 3_824
73
+ output:
74
+ # Income limit for family of 10: $3,824
75
+ # Gross earned: $3,824 <= $3,824
76
+ wa_tanf_income_eligible: true
77
+
78
+ - name: Family size 15 - capped at size 10 limit
79
+ period: 2024-01
80
+ input:
81
+ state_code: WA
82
+ spm_unit_size: 15
83
+ tanf_gross_earned_income: 3_824
84
+ output:
85
+ # Income limit capped at family of 10: $3,824
86
+ # Gross earned: $3,824 <= $3,824
87
+ wa_tanf_income_eligible: true
88
+
89
+ - name: Only calculate for WA
90
+ period: 2024-01
91
+ input:
92
+ state_code: MT
93
+ spm_unit_size: 3
94
+ tanf_gross_earned_income: 1_000
95
+ output:
96
+ wa_tanf_income_eligible: false
@@ -0,0 +1,70 @@
1
+ - name: Zero gross earned income - zero countable
2
+ period: 2024-01
3
+ input:
4
+ state_code: WA
5
+ tanf_gross_earned_income: 0
6
+ output:
7
+ # Countable = max($0 - $500, 0) × 0.5 = $0
8
+ wa_tanf_countable_earned_income: 0
9
+
10
+ - name: Gross earned below disregard - zero countable
11
+ period: 2024-01
12
+ input:
13
+ state_code: WA
14
+ tanf_gross_earned_income: 300
15
+ output:
16
+ # Countable = max($300 - $500, 0) × 0.5 = $0
17
+ wa_tanf_countable_earned_income: 0
18
+
19
+ - name: Gross earned exactly at disregard - zero countable
20
+ period: 2024-01
21
+ input:
22
+ state_code: WA
23
+ tanf_gross_earned_income: 500
24
+ output:
25
+ # Countable = max($500 - $500, 0) × 0.5 = $0
26
+ wa_tanf_countable_earned_income: 0
27
+
28
+ - name: Gross earned one dollar over disregard
29
+ period: 2024-01
30
+ input:
31
+ state_code: WA
32
+ tanf_gross_earned_income: 501
33
+ output:
34
+ # Countable = ($501 - $500) × 0.5 = $0.50
35
+ wa_tanf_countable_earned_income: 0.5
36
+
37
+ - name: Gross earned moderately above disregard
38
+ period: 2024-01
39
+ input:
40
+ state_code: WA
41
+ tanf_gross_earned_income: 1_000
42
+ output:
43
+ # Countable = ($1,000 - $500) × 0.5 = $250
44
+ wa_tanf_countable_earned_income: 250
45
+
46
+ - name: Gross earned significantly above disregard
47
+ period: 2024-01
48
+ input:
49
+ state_code: WA
50
+ tanf_gross_earned_income: 2_000
51
+ output:
52
+ # Countable = ($2,000 - $500) × 0.5 = $750
53
+ wa_tanf_countable_earned_income: 750
54
+
55
+ - name: High gross earned income
56
+ period: 2024-01
57
+ input:
58
+ state_code: WA
59
+ tanf_gross_earned_income: 4_000
60
+ output:
61
+ # Countable = ($4,000 - $500) × 0.5 = $1,750
62
+ wa_tanf_countable_earned_income: 1_750
63
+
64
+ - name: Only calculate for WA
65
+ period: 2024-01
66
+ input:
67
+ state_code: OR
68
+ tanf_gross_earned_income: 1_000
69
+ output:
70
+ wa_tanf_countable_earned_income: 0