policyengine-us 1.383.0__py3-none-any.whl → 1.385.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.

Potentially problematic release.


This version of policyengine-us might be problematic. Click here for more details.

Files changed (19) hide show
  1. policyengine_us/parameters/gov/states/il/dhs/tanf/payment_level/rate.yaml +3 -3
  2. policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_fpg.yaml +4 -4
  3. policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf.yaml +64 -30
  4. policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf_payment_level_for_grant_calculation.yaml +8 -8
  5. policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.yaml +3 -6
  6. policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_fpg.yaml +21 -0
  7. policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_person.yaml +112 -13
  8. policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_initial_eligibility.yaml +4 -4
  9. policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/property_tax_fairness_credit/me_property_tax_fairness_credit_veterans_cap.yaml +1 -1
  10. policyengine_us/variables/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_fpg.py +10 -3
  11. policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.py +1 -1
  12. policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_spm_unit_fpg.py +24 -0
  13. policyengine_us/variables/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_fpg.py +24 -0
  14. policyengine_us/variables/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_person.py +4 -3
  15. {policyengine_us-1.383.0.dist-info → policyengine_us-1.385.0.dist-info}/METADATA +1 -1
  16. {policyengine_us-1.383.0.dist-info → policyengine_us-1.385.0.dist-info}/RECORD +19 -16
  17. {policyengine_us-1.383.0.dist-info → policyengine_us-1.385.0.dist-info}/WHEEL +0 -0
  18. {policyengine_us-1.383.0.dist-info → policyengine_us-1.385.0.dist-info}/entry_points.txt +0 -0
  19. {policyengine_us-1.383.0.dist-info → policyengine_us-1.385.0.dist-info}/licenses/LICENSE +0 -0
@@ -2,7 +2,7 @@ description: Illinois applies this percentage of federal poverty level as paymen
2
2
 
3
3
  values:
4
4
  2020-10-01: 0.3
5
- 2024-10-01: 0.35
5
+ 2023-10-01: 0.35
6
6
 
7
7
  metadata:
8
8
  unit: /1
@@ -11,5 +11,5 @@ metadata:
11
11
  reference:
12
12
  - title: Ill. Admin. Code tit. 89, § 112.251 - Payment Levels
13
13
  href: https://www.law.cornell.edu/regulations/illinois/Ill-Admin-Code-tit-89-SS-112.251
14
- - title: TANF Payment Level and Initial Employment Deduction Increase
15
- href: https://www.dhs.state.il.us/page.aspx?item=166611
14
+ - title: MR 23.30 TANF Payment Level Increase/IED Levels
15
+ href: https://www.dhs.state.il.us/page.aspx?item=149890
@@ -5,7 +5,7 @@
5
5
  il_tanf_assistance_unit_size: 1
6
6
  state_code: IL
7
7
  output:
8
- il_tanf_assistance_unit_fpg: 14_580
8
+ il_tanf_assistance_unit_fpg: 13_837.5
9
9
 
10
10
  - name: Case 2, assistance unit size 3 in 2023.
11
11
  period: 2023
@@ -14,7 +14,7 @@
14
14
  il_tanf_assistance_unit_size: 3
15
15
  state_code: IL
16
16
  output:
17
- il_tanf_assistance_unit_fpg: 14_580 + 2 * 5_140
17
+ il_tanf_assistance_unit_fpg: 23_487.5
18
18
 
19
19
  - name: Case 3, assistance unit size 1 in 2023-01.
20
20
  period: 2023-01
@@ -23,7 +23,7 @@
23
23
  il_tanf_assistance_unit_size: 1
24
24
  state_code: IL
25
25
  output:
26
- il_tanf_assistance_unit_fpg: 1_215 # 14_580/12
26
+ il_tanf_assistance_unit_fpg: 1_132.5
27
27
 
28
28
  - name: Case 4, assistance unit size 3 in 2023-01.
29
29
  period: 2023-01
@@ -32,4 +32,4 @@
32
32
  il_tanf_assistance_unit_size: 3
33
33
  state_code: IL
34
34
  output:
35
- il_tanf_assistance_unit_fpg: 2_071.67 # (14_580 + 2 * 5_140)/12
35
+ il_tanf_assistance_unit_fpg: 1_919.17
@@ -65,15 +65,15 @@
65
65
  state_code: IL
66
66
  output:
67
67
  il_tanf_childcare_deduction: 375
68
- spm_unit_fpg: 2_071.7 # 24_680/12
69
- il_tanf_payment_level_for_initial_eligibility: 621.5 # 7_458/12
70
- il_tanf_initial_employment_deduction_person: [414.4, 0, 0] # 2071.7*0.5 - 621.5
71
- il_tanf_countable_income_for_initial_eligibility: 10.6 # 800 - 375 - 414.4
68
+ il_tanf_spm_unit_fpg: 1_919.17
69
+ il_tanf_payment_level_for_initial_eligibility: 575.75
70
+ il_tanf_initial_employment_deduction_person: [383.83, 0, 0]
71
+ il_tanf_countable_income_for_initial_eligibility: 41.17
72
72
  il_tanf_eligible: true
73
- il_tanf_assistance_unit_fpg: 2_071.7 # 24_680/12
74
- il_tanf_payment_level_for_grant_calculation: 621.5 # 7_458/12
75
- il_tanf_countable_income_for_grant_calculation: 106.25 # (800 - 375)*0.25
76
- il_tanf: 515.25 # 621.5 - 106.25
73
+ il_tanf_assistance_unit_fpg: 1_919.17
74
+ il_tanf_payment_level_for_grant_calculation: 575.75
75
+ il_tanf_countable_income_for_grant_calculation: 106.25
76
+ il_tanf: 469.5
77
77
 
78
78
  - name: Integration test 2, only children eligible for payment.
79
79
  period: 2023-01
@@ -82,7 +82,7 @@
82
82
  people:
83
83
  person1:
84
84
  age: 30
85
- employment_income: 9_600 # $800 per month
85
+ employment_income: 9_600
86
86
  is_tax_unit_head_or_spouse: true
87
87
  immigration_status: UNDOCUMENTED
88
88
  ssi: 0
@@ -102,7 +102,7 @@
102
102
  spm_unit:
103
103
  members: [person1, person2, person3]
104
104
  spm_unit_size: 3
105
- childcare_expenses: 4_800 # $400 per month
105
+ childcare_expenses: 4_800
106
106
  tax_units:
107
107
  tax_unit:
108
108
  members: [person1, person2, person3]
@@ -112,24 +112,24 @@
112
112
  state_code: IL
113
113
  output:
114
114
  il_tanf_childcare_deduction: 375
115
- spm_unit_fpg: 2_071.7 # 24_680/12
116
- il_tanf_payment_level_for_initial_eligibility: 621.5 # 7_458/12
117
- il_tanf_initial_employment_deduction_person: [414.4, 0, 0] # 2071.7*0.5 - 621.5
118
- il_tanf_countable_income_for_initial_eligibility: 10.6 # 800 - 375 - 414.4
115
+ il_tanf_spm_unit_fpg: 1_919.17
116
+ il_tanf_payment_level_for_initial_eligibility: 575.75
117
+ il_tanf_initial_employment_deduction_person: [187, 0, 0]
118
+ il_tanf_countable_income_for_initial_eligibility: 237.8
119
119
  il_tanf_eligible: true
120
- il_tanf_assistance_unit_fpg: 1_643.33 # (14_580 + 5_140)/12
121
- il_tanf_payment_level_for_grant_calculation: 369.75 # 1_643.33 * 0.3 * 0.75
122
- il_tanf_countable_income_for_grant_calculation: 106.25 # (800 - 375)*0.25
123
- il_tanf: 263.5 # 369.75 - 106.25
120
+ il_tanf_assistance_unit_fpg: 1_525.83
121
+ il_tanf_payment_level_for_grant_calculation: 343.31
122
+ il_tanf_countable_income_for_grant_calculation: 106.25
123
+ il_tanf: 237.06
124
124
 
125
125
  - name: Integration test 3, only parent eligible for payment.
126
126
  period: 2023-01
127
- absolute_error_margin: 0.5
127
+ absolute_error_margin: 1
128
128
  input:
129
129
  people:
130
130
  person1:
131
131
  age: 30
132
- employment_income: 9_600 # $800 per month
132
+ employment_income: 800
133
133
  is_tax_unit_head_or_spouse: true
134
134
  immigration_status: CITIZEN
135
135
  ssi: 0
@@ -149,7 +149,7 @@
149
149
  spm_unit:
150
150
  members: [person1, person2, person3]
151
151
  spm_unit_size: 3
152
- childcare_expenses: 4_800 # $400 per month
152
+ childcare_expenses: 400
153
153
  tax_units:
154
154
  tax_unit:
155
155
  members: [person1, person2, person3]
@@ -158,13 +158,47 @@
158
158
  members: [person1, person2, person3]
159
159
  state_code: IL
160
160
  output:
161
- il_tanf_childcare_deduction: 375
162
- spm_unit_fpg: 2_071.7 # 24_680/12
163
- il_tanf_payment_level_for_initial_eligibility: 621.5 # 7_458/12
164
- il_tanf_initial_employment_deduction_person: [414.4, 0, 0] # 2071.7*0.5 - 621.5
165
- il_tanf_countable_income_for_initial_eligibility: 10.6 # 800 - 375 - 414.4
161
+ il_tanf_childcare_deduction: 33
162
+ il_tanf_assistance_unit_size: 1 # Kids receive ssi
163
+ il_tanf_spm_unit_fpg: 1_919.17
164
+ il_tanf_assistance_unit_fpg: 1_132.5
165
+ il_tanf_initial_employment_deduction_fpg: 1_132.5
166
+ il_tanf_payment_level_for_initial_eligibility: 575.75
167
+ il_tanf_initial_employment_deduction_person: [0, 0, 0]
168
+ il_tanf_countable_income_for_initial_eligibility: 33
169
+ il_tanf_eligible: true
170
+ il_tanf_payment_level_for_grant_calculation: 84.94
171
+ il_tanf_countable_income_for_grant_calculation: 8
172
+ il_tanf: 77
173
+
174
+ - name: taxsim_record_277465_2021.yaml
175
+ absolute_error_margin: 0.3
176
+ period: 2025-01
177
+ input:
178
+ people:
179
+ person1:
180
+ age: 23
181
+ employment_income: 3600
182
+ il_aabd_gross_unearned_income: 0
183
+ social_security: 0
184
+ is_pregnant: true
185
+ tax_units:
186
+ tax_unit:
187
+ members: [person1]
188
+ premium_tax_credit: 0
189
+ local_income_tax: 0
190
+ state_sales_tax: 0
191
+ spm_units:
192
+ spm_unit:
193
+ members: [person1]
194
+ broadband_cost: 500
195
+ il_tanf_countable_unearned_income: 0
196
+ households:
197
+ household:
198
+ members: [person1]
199
+ state_code: IL
200
+ output:
166
201
  il_tanf_eligible: true
167
- il_tanf_assistance_unit_fpg: 1_215 # 14_580/12
168
- il_tanf_payment_level_for_grant_calculation: 91.25 # 1_215 * 0.3 * 0.25
169
- il_tanf_countable_income_for_grant_calculation: 106.25 # (800 - 375)*0.25
170
- il_tanf: 0 # 91.25 - 106.25
202
+ il_tanf_payment_level_for_initial_eligibility: 439.25
203
+ il_tanf_payment_level_for_grant_calculation: 109.81
204
+ il_tanf: 35
@@ -20,8 +20,8 @@
20
20
  members: [person1, person2, person3]
21
21
  state_code: IL
22
22
  output:
23
- il_tanf_assistance_unit_fpg: 2_071.67 # (14_580 + 2 * 5_140)/12
24
- il_tanf_payment_level_for_grant_calculation: 621.5 # 2_071.67 * 0.3
23
+ il_tanf_assistance_unit_fpg: 1_919.17
24
+ il_tanf_payment_level_for_grant_calculation: 575.75
25
25
 
26
26
  - name: Case 2, one parent and one child eligible for payment.
27
27
  period: 2023-01
@@ -45,8 +45,8 @@
45
45
  members: [person1, person2, person3]
46
46
  state_code: IL
47
47
  output:
48
- il_tanf_assistance_unit_fpg: 1_643.33 # (14_580 + 5_140)/12
49
- il_tanf_payment_level_for_grant_calculation: 493 # 1_643.33 * 0.3
48
+ il_tanf_assistance_unit_fpg: 1_525.83
49
+ il_tanf_payment_level_for_grant_calculation: 457.75
50
50
 
51
51
  - name: Case 3, only child eligible for payment.
52
52
  period: 2023-01
@@ -70,8 +70,8 @@
70
70
  members: [person1, person2, person3]
71
71
  state_code: IL
72
72
  output:
73
- il_tanf_assistance_unit_fpg: 1_215 # 14_580/12
74
- il_tanf_payment_level_for_grant_calculation: 273.38 # 1_215 * 0.3 * 0.75
73
+ il_tanf_assistance_unit_fpg: 1_132.5
74
+ il_tanf_payment_level_for_grant_calculation: 254.81
75
75
 
76
76
  - name: Case 4, only parent eligible for payment.
77
77
  period: 2023-01
@@ -95,5 +95,5 @@
95
95
  members: [person1, person2, person3]
96
96
  state_code: IL
97
97
  output:
98
- il_tanf_assistance_unit_fpg: 1_215 # 14_580/12
99
- il_tanf_payment_level_for_grant_calculation: 91.13 # 1_215 * 0.3 * 0.25
98
+ il_tanf_assistance_unit_fpg: 1_132.5
99
+ il_tanf_payment_level_for_grant_calculation: 84.94
@@ -4,8 +4,7 @@
4
4
  spm_unit_size: 1
5
5
  state_code: IL
6
6
  output:
7
- spm_unit_fpg: 14_580
8
- il_tanf_payment_level_for_initial_eligibility: 4_374
7
+ il_tanf_payment_level_for_initial_eligibility: 4_333.5
9
8
 
10
9
  - name: Size of 2.
11
10
  period: 2023
@@ -13,8 +12,7 @@
13
12
  spm_unit_size: 2
14
13
  state_code: IL
15
14
  output:
16
- spm_unit_fpg: 19_720
17
- il_tanf_payment_level_for_initial_eligibility: 5_916
15
+ il_tanf_payment_level_for_initial_eligibility: 5_845.25
18
16
 
19
17
  - name: Size of 3.
20
18
  period: 2023
@@ -22,5 +20,4 @@
22
20
  spm_unit_size: 3
23
21
  state_code: IL
24
22
  output:
25
- spm_unit_fpg: 24_860
26
- il_tanf_payment_level_for_initial_eligibility: 7_458
23
+ il_tanf_payment_level_for_initial_eligibility: 7_357
@@ -0,0 +1,21 @@
1
+ - name: 2023 test, spm unit fpg fog should higher due to March adjustment for IL TANF IED
2
+ period: 2023-01
3
+ absolute_error_margin: 1
4
+ input:
5
+ il_tanf_assistance_unit_size: 1
6
+ spm_unit_size: 1
7
+ state_code: IL
8
+ output:
9
+ il_tanf_initial_employment_deduction_fpg: 1_133
10
+ spm_unit_fpg: 1_215
11
+
12
+ - name: 2024 test, IL TANF IED fpg should match 2023 spm unit fpg
13
+ period: 2024-01
14
+ absolute_error_margin: 0.1
15
+ input:
16
+ il_tanf_assistance_unit_size: 1
17
+ spm_unit_size: 1
18
+ state_code: IL
19
+ output:
20
+ il_tanf_initial_employment_deduction_fpg: 1_215
21
+ spm_unit_fpg: 1_255
@@ -1,30 +1,21 @@
1
1
  - name: Case 1, household size of 1 with $10000 earned income.
2
2
  period: 2023
3
3
  input:
4
- spm_unit_size: 1
4
+ il_tanf_assistance_unit_size: 1
5
5
  il_tanf_gross_earned_income: 10_000
6
6
  is_tax_unit_head_or_spouse: true
7
7
  state_code: IL
8
8
  output:
9
- spm_unit_fpg: 14_580
10
- il_tanf_payment_level_for_initial_eligibility: 4_374
11
- il_tanf_initial_employment_deduction_person: 2_916
12
- # fpg: 14_580
13
- # payment level: 4_374
14
- # 0.5 * 14_580 - 4_374 = 2_916
9
+ il_tanf_initial_employment_deduction_person: 2_874
15
10
 
16
11
  - name: Case 2, household size of 2 with $10000 earned income.
17
12
  period: 2023
18
13
  input:
19
- spm_unit_size: 2
14
+ il_tanf_assistance_unit_size: 2
20
15
  il_tanf_gross_earned_income: 10_000
21
- is_tax_unit_head_or_spouse: true
22
16
  state_code: IL
23
17
  output:
24
- il_tanf_initial_employment_deduction_person: 3_944
25
- # fpg: 19_720
26
- # payment level: 5_916
27
- # 0.5 * 19_720 - 5_916 = 3_944
18
+ il_tanf_initial_employment_deduction_person: 5_409
28
19
 
29
20
  - name: Case 3, household size of 1 with $10000 earned income, but not head or spouse.
30
21
  period: 2023
@@ -45,3 +36,111 @@
45
36
  state_code: IL
46
37
  output:
47
38
  il_tanf_initial_employment_deduction_person: 2_000
39
+
40
+ - name: Integration test, lagged fpg for IED
41
+ period: 2025
42
+ absolute_error_margin: 1
43
+ input:
44
+ people:
45
+ person1:
46
+ employment_income: 10_200
47
+ age: 30
48
+ person2:
49
+ age: 5
50
+ person3:
51
+ age: 3
52
+ spm_units:
53
+ spm_unit:
54
+ members: [person1, person2, person3]
55
+ tax_units:
56
+ tax_unit:
57
+ members: [person1, person2, person3]
58
+ households:
59
+ household:
60
+ members: [person1, person2, person3]
61
+ state_code: IL
62
+ output:
63
+ # 322.75 * 2 (Jan / Feb)
64
+ # 358 * 7 (Mar - Sep) (IED FPG adjusted in Mar)
65
+ # 333 * 3 (Oct - Dec) (Payment level adjusted in October)
66
+ il_tanf_initial_employment_deduction_person: [4_147, 0, 0]
67
+
68
+ - name: 2024 january test
69
+ period: 2024-01
70
+ absolute_error_margin: 1
71
+ input:
72
+ people:
73
+ person1:
74
+ employment_income: 10_200
75
+ age: 30
76
+ person2:
77
+ age: 5
78
+ person3:
79
+ age: 3
80
+ spm_units:
81
+ spm_unit:
82
+ members: [person1, person2, person3]
83
+ tax_units:
84
+ tax_unit:
85
+ members: [person1, person2, person3]
86
+ households:
87
+ household:
88
+ members: [person1, person2, person3]
89
+ state_code: IL
90
+ output:
91
+ # https://www.dhs.state.il.us/page.aspx?item=82780
92
+ il_tanf_initial_employment_deduction_person: [311, 0, 0]
93
+
94
+ - name: 2025 monthly test
95
+ period: 2025-01
96
+ absolute_error_margin: 1
97
+ input:
98
+ people:
99
+ person1:
100
+ employment_income: 10_200
101
+ age: 30
102
+ person2:
103
+ age: 5
104
+ person3:
105
+ age: 3
106
+ spm_units:
107
+ spm_unit:
108
+ members: [person1, person2, person3]
109
+ tax_units:
110
+ tax_unit:
111
+ members: [person1, person2, person3]
112
+ households:
113
+ household:
114
+ members: [person1, person2, person3]
115
+ state_code: IL
116
+ output:
117
+ # https://www.dhs.state.il.us/page.aspx?item=82780
118
+ il_tanf_initial_employment_deduction_person: [323, 0, 0]
119
+
120
+ - name: 2023 monthly test
121
+ period: 2023-01
122
+ absolute_error_margin: 1
123
+ input:
124
+ people:
125
+ person1:
126
+ employment_income: 10_200
127
+ age: 30
128
+ person2:
129
+ age: 5
130
+ person3:
131
+ age: 3
132
+ person4:
133
+ age: 1
134
+ spm_units:
135
+ spm_unit:
136
+ members: [person1, person2, person3, person4]
137
+ tax_units:
138
+ tax_unit:
139
+ members: [person1, person2, person3, person4]
140
+ households:
141
+ household:
142
+ members: [person1, person2, person3, person4]
143
+ state_code: IL
144
+ output:
145
+ # https://www.dhs.state.il.us/page.aspx?item=82780
146
+ il_tanf_initial_employment_deduction_person: [463, 0, 0, 0]
@@ -56,7 +56,7 @@
56
56
  state_code: IL
57
57
  output:
58
58
  il_tanf_childcare_deduction: 375
59
- spm_unit_fpg: 2_071.7 # 24_680/12
60
- il_tanf_payment_level_for_initial_eligibility: 621.5 # 7_458/12
61
- il_tanf_initial_employment_deduction_person: [414.4, 0, 0] # 2071.7*0.5 - 621.5
62
- il_tanf_countable_earned_income_for_initial_eligibility: 10.6 # 800 - 375 - 414.4
59
+ il_tanf_spm_unit_fpg: 1_919.17
60
+ il_tanf_payment_level_for_initial_eligibility: 575.75
61
+ il_tanf_initial_employment_deduction_person: [383.83, 0, 0]
62
+ il_tanf_countable_earned_income_for_initial_eligibility: 41.17
@@ -49,4 +49,4 @@
49
49
  me_property_tax_fairness_credit_base_cap: 5_000
50
50
  veterans_benefits: 1_000
51
51
  output:
52
- me_property_tax_fairness_credit_veterans_cap: 5_000 # Base cap * 1.0 match
52
+ me_property_tax_fairness_credit_veterans_cap: 5_000 # Base cap * 1.0 match
@@ -12,6 +12,13 @@ class il_tanf_assistance_unit_fpg(Variable):
12
12
  n = spm_unit("il_tanf_assistance_unit_size", period)
13
13
  state_group = spm_unit.household("state_group_str", period)
14
14
  p_fpg = parameters(period).gov.hhs.fpg
15
- p1 = p_fpg.first_person[state_group] / MONTHS_IN_YEAR
16
- pn = p_fpg.additional_person[state_group] / MONTHS_IN_YEAR
17
- return p1 + pn * (n - 1)
15
+ year = period.start.year
16
+ month = period.start.month
17
+ if month >= 10:
18
+ instant_str = f"{year}-10-01"
19
+ else:
20
+ instant_str = f"{year - 1}-10-01"
21
+ p_fpg = parameters(instant_str).gov.hhs.fpg
22
+ p1 = p_fpg.first_person[state_group]
23
+ pn = p_fpg.additional_person[state_group]
24
+ return (p1 + pn * (n - 1)) / MONTHS_IN_YEAR
@@ -12,6 +12,6 @@ class il_tanf_payment_level_for_initial_eligibility(Variable):
12
12
 
13
13
  def formula(spm_unit, period, parameters):
14
14
  p = parameters(period).gov.states.il.dhs.tanf.payment_level
15
- fpg = spm_unit("spm_unit_fpg", period)
15
+ fpg = spm_unit("il_tanf_spm_unit_fpg", period)
16
16
 
17
17
  return p.rate * fpg
@@ -0,0 +1,24 @@
1
+ from policyengine_us.model_api import *
2
+
3
+
4
+ class il_tanf_spm_unit_fpg(Variable):
5
+ value_type = float
6
+ entity = SPMUnit
7
+ label = "Illinois TANF spm unit's federal poverty guideline"
8
+ definition_period = MONTH
9
+ defined_for = StateCode.IL
10
+
11
+ def formula(spm_unit, period, parameters):
12
+ n = spm_unit("spm_unit_size", period)
13
+ state_group = spm_unit.household("state_group_str", period)
14
+ p_fpg = parameters(period).gov.hhs.fpg
15
+ year = period.start.year
16
+ month = period.start.month
17
+ if month >= 10:
18
+ instant_str = f"{year}-10-01"
19
+ else:
20
+ instant_str = f"{year - 1}-10-01"
21
+ p_fpg = parameters(instant_str).gov.hhs.fpg
22
+ p1 = p_fpg.first_person[state_group]
23
+ pn = p_fpg.additional_person[state_group]
24
+ return (p1 + pn * (n - 1)) / MONTHS_IN_YEAR
@@ -0,0 +1,24 @@
1
+ from policyengine_us.model_api import *
2
+
3
+
4
+ class il_tanf_initial_employment_deduction_fpg(Variable):
5
+ value_type = float
6
+ entity = SPMUnit
7
+ label = "Illinois TANF federal poverty guidelines for the initial employment deduction"
8
+ definition_period = MONTH
9
+ defined_for = StateCode.IL
10
+
11
+ def formula(spm_unit, period, parameters):
12
+ n = spm_unit("il_tanf_assistance_unit_size", period)
13
+ state_group = spm_unit.household("state_group_str", period)
14
+ p_fpg = parameters(period).gov.hhs.fpg
15
+ year = period.start.year
16
+ month = period.start.month
17
+ if month >= 3:
18
+ instant_str = f"{year}-03-01"
19
+ else:
20
+ instant_str = f"{year - 1}-03-01"
21
+ p_fpg = parameters(instant_str).gov.hhs.fpg
22
+ p1 = p_fpg.first_person[state_group]
23
+ pn = p_fpg.additional_person[state_group]
24
+ return (p1 + pn * (n - 1)) / MONTHS_IN_YEAR
@@ -16,12 +16,13 @@ class il_tanf_initial_employment_deduction_person(Variable):
16
16
  ).gov.states.il.dhs.tanf.income.initial_employment_deduction
17
17
 
18
18
  gross_earned_income = person("il_tanf_gross_earned_income", period)
19
- fpg = person.spm_unit("spm_unit_fpg", period)
19
+ fpg = person.spm_unit(
20
+ "il_tanf_initial_employment_deduction_fpg", period
21
+ )
20
22
  payment_level = person.spm_unit(
21
23
  "il_tanf_payment_level_for_initial_eligibility", period
22
24
  )
23
-
24
- initial_employment_deduction = p.rate * fpg - payment_level
25
+ initial_employment_deduction = max_(p.rate * fpg - payment_level, 0)
25
26
  is_employed = gross_earned_income > 0
26
27
  is_head_or_spouse = person("is_tax_unit_head_or_spouse", period)
27
28
  ied_eligible_person = is_employed & is_head_or_spouse
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.383.0
3
+ Version: 1.385.0
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -1617,7 +1617,7 @@ policyengine_us/parameters/gov/states/il/dhs/tanf/income/sources/earned.yaml,sha
1617
1617
  policyengine_us/parameters/gov/states/il/dhs/tanf/income/sources/unearned.yaml,sha256=dBVN4KUGiMEoDReCF94cVzONBaUizGVMR3bWcG5MJY0,1272
1618
1618
  policyengine_us/parameters/gov/states/il/dhs/tanf/payment_level/child_only_rate.yaml,sha256=ti4PYRhHBOELwhk6fGOnKID7nuoE5kLxt_H558gAcvM,443
1619
1619
  policyengine_us/parameters/gov/states/il/dhs/tanf/payment_level/parent_only_rate.yaml,sha256=JDMIwZgVyqZTBrRaPCZfMXEtUnB2n8umgnVRoqLax90,445
1620
- policyengine_us/parameters/gov/states/il/dhs/tanf/payment_level/rate.yaml,sha256=ax8QPFVFDAytzuxHcu3hy7DluX_CJxugIbGEkCR6FY4,587
1620
+ policyengine_us/parameters/gov/states/il/dhs/tanf/payment_level/rate.yaml,sha256=lco8TfixAPTxm_P74tlb_8aQzXLrmwITaprxMkpnews,574
1621
1621
  policyengine_us/parameters/gov/states/il/idoa/README.md,sha256=dSkp_E5HfWVdCBlFS5BdtAqNFOAGSBgTF7E3I9vJ8PU,38
1622
1622
  policyengine_us/parameters/gov/states/il/idoa/bap/README.md,sha256=ooC8UJHcRygwWKLRncZu-a0gW69M7euqkUIb3tMPZAk,25
1623
1623
  policyengine_us/parameters/gov/states/il/idoa/bap/disabled.yaml,sha256=fls1LRh7w5iQR2T9fuEV6GdKDs0Q19QZKtR3WlMBQvg,594
@@ -4057,10 +4057,10 @@ policyengine_us/tests/policy/baseline/gov/states/il/dhs/ccap/il_ccap_eligible_ch
4057
4057
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/ccap/il_ccap_immigration_status_eligible_person.yaml,sha256=3pp8P8FsjjdwJP-CYMOJ6g2yQVWZNbaHe0UZj2GilJ4,673
4058
4058
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/ccap/il_ccap_income_eligible.yaml,sha256=reLYko4lN6Fch7dFHsb3DI-WKxS5oH5QCJJ6clRBNnQ,1610
4059
4059
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/ccap/il_ccap_parent_meets_working_requirements.yaml,sha256=x9LNMNeQs6CuOnwiHKLoq9HJLMerlecaZ9huxzm0XnM,2298
4060
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf.yaml,sha256=ZHZuM5ZOxRKOU2YvJvIVdM8rET24iN9Oq-1fzE_yK2I,5323
4061
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf_payment_level_for_grant_calculation.yaml,sha256=wH3-0sYlPwdrqtLQkqO816xfixjNPVhqSBdR0WPkmYE,2806
4062
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.yaml,sha256=zNU7h6CgmnA8Bia542CV24Xb1prb35ozhgdwlJTKaVo,529
4063
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_fpg.yaml,sha256=WSmuA3EMLfMQQHlOBfBK5xX2eoOb29UtPRVRhW7oiio,890
4060
+ policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf.yaml,sha256=417ZTRNbpODR7ZpOqBlu1qXz59F96D5Uq-zDV6Ub7q4,5764
4061
+ policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf_payment_level_for_grant_calculation.yaml,sha256=rA2-oM0WFxsRlEbI9rYiXz2B-9ZPY6K0HAazhZDzR88,2666
4062
+ policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.yaml,sha256=rY1c-obHyNgQSTVBKY0FonMgSOgl3m_rjhTfteddr-E,459
4063
+ policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_fpg.yaml,sha256=OeRapbtz-c2zWofKRr9WrQN87hCfX5Dj3EmFi7DgSOI,846
4064
4064
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_size.yaml,sha256=zkqiYMNA_Chb2s-FgkUQrOZWPmrmty-2Wr5AhCUKgV0,1731
4065
4065
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/assistance_unit/il_tanf_payment_eligible_child.yaml,sha256=OpvQsqFHCiagWOrrQctlrOuA5zo0WgD9tflPTm9gWpA,1040
4066
4066
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/assistance_unit/il_tanf_payment_eligible_parent.yaml,sha256=47UWlDNP9TCXkpfM3j_V-UrvnbFuCIvZSDSDc71oYII,1070
@@ -4072,9 +4072,10 @@ policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/eligibility/il_tanf
4072
4072
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/eligibility/il_tanf_immigration_status_eligible_person.yaml,sha256=jAF1EZ6Oclky26BZJNOy6YCxcSH-4srjsTfQN9345Rw,714
4073
4073
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/eligibility/il_tanf_non_financial_eligible.yaml,sha256=DptqeBfabhX9IscKm7rkcP3y9_9s-QkSIgihp5JUQoA,733
4074
4074
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_childcare_deduction.yaml,sha256=IjvDPB8O0lAuOlUDHfPw7pGMPQkxJJaTclaevAhrrL8,906
4075
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_person.yaml,sha256=2sI64d3qy2qexJin1iujyhzDDaZT0Bm26EcVbatHPLc,1346
4075
+ policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_fpg.yaml,sha256=s16WRFnWbauY-wqSsfgRNdgyWQjD0Ewy8YrxwKdGBBQ,591
4076
+ policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_person.yaml,sha256=MebElX6ksf1iZsGEthCiwSc2x8L3jV3_4vSrohiHYzE,3655
4076
4077
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_grant_calculation.yaml,sha256=_Z1lVh7L9QXQf21pX65DRZHfUDWmY3cU0H31CsEu9oQ,1617
4077
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_initial_eligibility.yaml,sha256=g47uAxTbICMewGva2Du0bB5BhZ0iQjWdX216oE1X9e4,1999
4078
+ policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_initial_eligibility.yaml,sha256=fRlSh5wXfG3_YU-vO_pxI0CQvDjB4Mm309h4zoTMOKI,1946
4078
4079
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_gross_earned_income.yaml,sha256=3RihYL4CTmtqnAYwZXsLsc1SJXOSYQWuiuC10s-Nf4w,416
4079
4080
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/unearned/il_tanf_countable_unearned_income.yaml,sha256=Tk_aO8C0jVW1ateWv8U66-_QUXLajf6lsbZDPlOTPkQ,412
4080
4081
  policyengine_us/tests/policy/baseline/gov/states/il/idoa/bap/il_bap_eligible.yaml,sha256=bxAIxI1GYL6I-htJnFPMEbbbq4yo0QZ2_b4V9jfboQc,1115
@@ -4323,7 +4324,7 @@ policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/property_
4323
4324
  policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/property_tax_fairness_credit/me_property_tax_fairness_credit_benefit_base.yaml,sha256=bjLBZATVRcebI-fgOnDz4QK4lja87ipqsARZ0XmCVog,1058
4324
4325
  policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/property_tax_fairness_credit/me_property_tax_fairness_credit_countable_rent.yaml,sha256=kEKwVVltAyhElP_bFc4ooPttRDfBDWC7vIpMmbz55i4,516
4325
4326
  policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/property_tax_fairness_credit/me_property_tax_fairness_credit_eligible.yaml,sha256=HQc_AIrV0tufYFO2dZAKH9MYZ0dhnzR_0WeTUMhwSuk,628
4326
- policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/property_tax_fairness_credit/me_property_tax_fairness_credit_veterans_cap.yaml,sha256=O5MNpu3v9kPgXmxPczu6zd6QOS22tRxifgnJHF1Hisw,1595
4327
+ policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/property_tax_fairness_credit/me_property_tax_fairness_credit_veterans_cap.yaml,sha256=4gpGT8zXrLnbKmNFzKJTl1jKWL_mnw_vy2GJwC650HE,1596
4327
4328
  policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/sales_tax_fairness_credit/me_sales_tax_fairness_credit.yaml,sha256=vJNB_mRxb061zP6aiVUpLwZZ4snaTYgP-psZ4cwldQI,1921
4328
4329
  policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/sales_tax_fairness_credit/me_sales_tax_fairness_credit_eligible.yaml,sha256=WPMQGoKPX7CEiwFJ9xxLmPo8p-wlK-L_5FV7Vog-OoM,574
4329
4330
  policyengine_us/tests/policy/baseline/gov/states/me/tax/income/taxable_income/me_agi_subtractions.yaml,sha256=azfcpz84UyHiRMoDoQA50nLleuOF1uU8Zmg9UNzfxfM,1395
@@ -6497,8 +6498,9 @@ policyengine_us/variables/gov/states/il/dhs/ccap/eligibility/il_ccap_income_elig
6497
6498
  policyengine_us/variables/gov/states/il/dhs/ccap/eligibility/il_ccap_parent_meets_working_requirements.py,sha256=4joQ0ujXb1ZVxOuRd2RhNBYPIdpKK9yYS0cwdRvfHXo,938
6498
6499
  policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf.py,sha256=QM4fibE08qvX0e53uDO-Ue5K39v7jkIfDDr2QypNUEU,694
6499
6500
  policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_payment_level_for_grant_application.py,sha256=s8nEYbkiOa5QfGVpkpgHwbegdR3bP1r7e79e99EMxj8,1606
6500
- policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.py,sha256=Hl1dfwR5Z-Ab4o_0_DziAV6gSWZ_eYT4whqzjUrlsJk,625
6501
- policyengine_us/variables/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_fpg.py,sha256=cy5gJqd5kkKDCQyM0mhUHjiaz8xgKoBTBR7QMdGJyrA,650
6501
+ policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.py,sha256=tiTWVdvEGzaZ9bJ51z_Fn8nogA7XXtwkfuu7KpR5IK4,633
6502
+ policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_spm_unit_fpg.py,sha256=ficXvkwTHNMNOiFKLMdXkFOG8hj7nsYwUB4hd7UeNEE,852
6503
+ policyengine_us/variables/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_fpg.py,sha256=sOSLU08dwOTYcwF__lh9jLkzxKkn3-H3QR0RgCaQewc,881
6502
6504
  policyengine_us/variables/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_size.py,sha256=xYdABo62EPA9optuG2PRGz__ZLaoyd9HKhYSyKNuBOM,487
6503
6505
  policyengine_us/variables/gov/states/il/dhs/tanf/assistance_unit/il_tanf_payment_eligible_child.py,sha256=KTifkd0vUkyKMDttstqHm9JctYVFrlKKOYyd_DmO3mE,666
6504
6506
  policyengine_us/variables/gov/states/il/dhs/tanf/assistance_unit/il_tanf_payment_eligible_parent.py,sha256=p38LrcVwVhwogEzoEv-iO50mTYqyNyJL0nQ0JmPwMHg,679
@@ -6512,7 +6514,8 @@ policyengine_us/variables/gov/states/il/dhs/tanf/eligibility/il_tanf_non_financi
6512
6514
  policyengine_us/variables/gov/states/il/dhs/tanf/income/il_tanf_countable_income_for_grant_calculation.py,sha256=baWtisrhHtX91nqZf7aReoIsn6OxxxfWsx7YKL00JWo,565
6513
6515
  policyengine_us/variables/gov/states/il/dhs/tanf/income/il_tanf_countable_income_for_initial_eligibility.py,sha256=72lnW9HwgASOyOYdVx-I-M5mNneJB1L_WrJNVaufDns,562
6514
6516
  policyengine_us/variables/gov/states/il/dhs/tanf/income/deductions/il_tanf_childcare_deduction.py,sha256=Gi8hVZAR3GSremvczW4fXOK2HtbPbwjaULN4S2XC5u0,973
6515
- policyengine_us/variables/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_person.py,sha256=jzm7g2LmFtGslFSkkuTMUDFmPHGoynzBwlPV3x3PuqI,1219
6517
+ policyengine_us/variables/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_fpg.py,sha256=IBFygwalOIpNubM6B9hUwk_-r5lw-ebte-5ZTuvxxpQ,913
6518
+ policyengine_us/variables/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_person.py,sha256=DcOVC7CV91NNvq603EhvKzwe7FRPDAKATBscBmCNM58,1277
6516
6519
  policyengine_us/variables/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_grant_calculation.py,sha256=aqgwBMvDctb-YuDQ-8ApDW8z-713HCoOQ0tncPnEXVY,1029
6517
6520
  policyengine_us/variables/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_initial_eligibility.py,sha256=d1Zukl9bocUSaCkHTBARkUamyKfE7MP148rZr3PzK1A,992
6518
6521
  policyengine_us/variables/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_gross_earned_income.py,sha256=o4L9NFEi1cjMcocrpup-sG0oHqS4tuzbh4krgnglA_E,617
@@ -8304,8 +8307,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
8304
8307
  policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
8305
8308
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
8306
8309
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
8307
- policyengine_us-1.383.0.dist-info/METADATA,sha256=OHHi_sCwaJcw2LBrsw8bG5acWDrtPQB6Yn6DKyxNSec,1649
8308
- policyengine_us-1.383.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8309
- policyengine_us-1.383.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8310
- policyengine_us-1.383.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8311
- policyengine_us-1.383.0.dist-info/RECORD,,
8310
+ policyengine_us-1.385.0.dist-info/METADATA,sha256=e565zzBYl7d_ZBdXIITo3ttDpjT8dIuXfYJ2Yrlk5-Q,1649
8311
+ policyengine_us-1.385.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8312
+ policyengine_us-1.385.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8313
+ policyengine_us-1.385.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8314
+ policyengine_us-1.385.0.dist-info/RECORD,,