policyengine-us 1.385.1__py3-none-any.whl → 1.386.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.
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf.yaml +12 -15
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.yaml +3 -3
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_person.yaml +109 -1
- policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_initial_eligibility.yaml +0 -1
- policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.py +1 -1
- {policyengine_us-1.385.1.dist-info → policyengine_us-1.386.0.dist-info}/METADATA +1 -1
- {policyengine_us-1.385.1.dist-info → policyengine_us-1.386.0.dist-info}/RECORD +10 -11
- policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_spm_unit_fpg.py +0 -24
- {policyengine_us-1.385.1.dist-info → policyengine_us-1.386.0.dist-info}/WHEEL +0 -0
- {policyengine_us-1.385.1.dist-info → policyengine_us-1.386.0.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.385.1.dist-info → policyengine_us-1.386.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
state_code: IL
|
|
66
66
|
output:
|
|
67
67
|
il_tanf_childcare_deduction: 375
|
|
68
|
-
il_tanf_spm_unit_fpg: 1_919.17
|
|
69
68
|
il_tanf_payment_level_for_initial_eligibility: 575.75
|
|
70
69
|
il_tanf_initial_employment_deduction_person: [383.83, 0, 0]
|
|
71
70
|
il_tanf_countable_income_for_initial_eligibility: 41.17
|
|
@@ -112,10 +111,9 @@
|
|
|
112
111
|
state_code: IL
|
|
113
112
|
output:
|
|
114
113
|
il_tanf_childcare_deduction: 375
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
il_tanf_countable_income_for_initial_eligibility: 237.8
|
|
114
|
+
il_tanf_payment_level_for_initial_eligibility: 457.75
|
|
115
|
+
il_tanf_initial_employment_deduction_person: [305.17, 0, 0]
|
|
116
|
+
il_tanf_countable_income_for_initial_eligibility: 119.83
|
|
119
117
|
il_tanf_eligible: true
|
|
120
118
|
il_tanf_assistance_unit_fpg: 1_525.83
|
|
121
119
|
il_tanf_payment_level_for_grant_calculation: 343.31
|
|
@@ -124,12 +122,12 @@
|
|
|
124
122
|
|
|
125
123
|
- name: Integration test 3, only parent eligible for payment.
|
|
126
124
|
period: 2023-01
|
|
127
|
-
absolute_error_margin:
|
|
125
|
+
absolute_error_margin: 0.5
|
|
128
126
|
input:
|
|
129
127
|
people:
|
|
130
128
|
person1:
|
|
131
129
|
age: 30
|
|
132
|
-
employment_income:
|
|
130
|
+
employment_income: 9_600
|
|
133
131
|
is_tax_unit_head_or_spouse: true
|
|
134
132
|
immigration_status: CITIZEN
|
|
135
133
|
ssi: 0
|
|
@@ -160,16 +158,15 @@
|
|
|
160
158
|
output:
|
|
161
159
|
il_tanf_childcare_deduction: 33
|
|
162
160
|
il_tanf_assistance_unit_size: 1 # Kids receive ssi
|
|
163
|
-
il_tanf_spm_unit_fpg: 1_919.17
|
|
164
161
|
il_tanf_assistance_unit_fpg: 1_132.5
|
|
165
162
|
il_tanf_initial_employment_deduction_fpg: 1_132.5
|
|
166
|
-
il_tanf_payment_level_for_initial_eligibility:
|
|
167
|
-
il_tanf_initial_employment_deduction_person: [
|
|
168
|
-
il_tanf_countable_income_for_initial_eligibility:
|
|
169
|
-
il_tanf_eligible:
|
|
163
|
+
il_tanf_payment_level_for_initial_eligibility: 339.75
|
|
164
|
+
il_tanf_initial_employment_deduction_person: [226.5, 0, 0]
|
|
165
|
+
il_tanf_countable_income_for_initial_eligibility: 540.5
|
|
166
|
+
il_tanf_eligible: false
|
|
170
167
|
il_tanf_payment_level_for_grant_calculation: 84.94
|
|
171
|
-
il_tanf_countable_income_for_grant_calculation:
|
|
172
|
-
il_tanf:
|
|
168
|
+
il_tanf_countable_income_for_grant_calculation: 191.75
|
|
169
|
+
il_tanf: 0
|
|
173
170
|
|
|
174
171
|
- name: taxsim_record_277465_2021.yaml
|
|
175
172
|
absolute_error_margin: 0.3
|
|
@@ -178,7 +175,7 @@
|
|
|
178
175
|
people:
|
|
179
176
|
person1:
|
|
180
177
|
age: 23
|
|
181
|
-
employment_income:
|
|
178
|
+
employment_income: 3_600
|
|
182
179
|
il_aabd_gross_unearned_income: 0
|
|
183
180
|
social_security: 0
|
|
184
181
|
is_pregnant: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
- name: Size of 1.
|
|
2
2
|
period: 2023
|
|
3
3
|
input:
|
|
4
|
-
|
|
4
|
+
il_tanf_assistance_unit_size: 1
|
|
5
5
|
state_code: IL
|
|
6
6
|
output:
|
|
7
7
|
il_tanf_payment_level_for_initial_eligibility: 4_333.5
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- name: Size of 2.
|
|
10
10
|
period: 2023
|
|
11
11
|
input:
|
|
12
|
-
|
|
12
|
+
il_tanf_assistance_unit_size: 2
|
|
13
13
|
state_code: IL
|
|
14
14
|
output:
|
|
15
15
|
il_tanf_payment_level_for_initial_eligibility: 5_845.25
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
- name: Size of 3.
|
|
18
18
|
period: 2023
|
|
19
19
|
input:
|
|
20
|
-
|
|
20
|
+
il_tanf_assistance_unit_size: 3
|
|
21
21
|
state_code: IL
|
|
22
22
|
output:
|
|
23
23
|
il_tanf_payment_level_for_initial_eligibility: 7_357
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
il_tanf_gross_earned_income: 10_000
|
|
16
16
|
state_code: IL
|
|
17
17
|
output:
|
|
18
|
-
il_tanf_initial_employment_deduction_person:
|
|
18
|
+
il_tanf_initial_employment_deduction_person: 3_897.25
|
|
19
19
|
|
|
20
20
|
- name: Case 3, household size of 1 with $10000 earned income, but not head or spouse.
|
|
21
21
|
period: 2023
|
|
@@ -144,3 +144,111 @@
|
|
|
144
144
|
output:
|
|
145
145
|
# https://www.dhs.state.il.us/page.aspx?item=82780
|
|
146
146
|
il_tanf_initial_employment_deduction_person: [463, 0, 0, 0]
|
|
147
|
+
|
|
148
|
+
- name: Integration test, lagged fpg for IED
|
|
149
|
+
period: 2025
|
|
150
|
+
absolute_error_margin: 1
|
|
151
|
+
input:
|
|
152
|
+
people:
|
|
153
|
+
person1:
|
|
154
|
+
employment_income: 10_200
|
|
155
|
+
age: 30
|
|
156
|
+
person2:
|
|
157
|
+
age: 5
|
|
158
|
+
person3:
|
|
159
|
+
age: 3
|
|
160
|
+
spm_units:
|
|
161
|
+
spm_unit:
|
|
162
|
+
members: [person1, person2, person3]
|
|
163
|
+
tax_units:
|
|
164
|
+
tax_unit:
|
|
165
|
+
members: [person1, person2, person3]
|
|
166
|
+
households:
|
|
167
|
+
household:
|
|
168
|
+
members: [person1, person2, person3]
|
|
169
|
+
state_code: IL
|
|
170
|
+
output:
|
|
171
|
+
# 322.75 * 2 (Jan / Feb)
|
|
172
|
+
# 358 * 7 (Mar - Sep) (IED FPG adjusted in Mar)
|
|
173
|
+
# 333 * 3 (Oct - Dec) (Payment level adjusted in October)
|
|
174
|
+
il_tanf_initial_employment_deduction_person: [4_147, 0, 0]
|
|
175
|
+
|
|
176
|
+
- name: 2024 january test
|
|
177
|
+
period: 2024-01
|
|
178
|
+
absolute_error_margin: 1
|
|
179
|
+
input:
|
|
180
|
+
people:
|
|
181
|
+
person1:
|
|
182
|
+
employment_income: 10_200
|
|
183
|
+
age: 30
|
|
184
|
+
person2:
|
|
185
|
+
age: 5
|
|
186
|
+
person3:
|
|
187
|
+
age: 3
|
|
188
|
+
spm_units:
|
|
189
|
+
spm_unit:
|
|
190
|
+
members: [person1, person2, person3]
|
|
191
|
+
tax_units:
|
|
192
|
+
tax_unit:
|
|
193
|
+
members: [person1, person2, person3]
|
|
194
|
+
households:
|
|
195
|
+
household:
|
|
196
|
+
members: [person1, person2, person3]
|
|
197
|
+
state_code: IL
|
|
198
|
+
output:
|
|
199
|
+
# https://www.dhs.state.il.us/page.aspx?item=82780
|
|
200
|
+
il_tanf_initial_employment_deduction_person: [311, 0, 0]
|
|
201
|
+
|
|
202
|
+
- name: 2025 monthly test
|
|
203
|
+
period: 2025-01
|
|
204
|
+
absolute_error_margin: 1
|
|
205
|
+
input:
|
|
206
|
+
people:
|
|
207
|
+
person1:
|
|
208
|
+
employment_income: 10_200
|
|
209
|
+
age: 30
|
|
210
|
+
person2:
|
|
211
|
+
age: 5
|
|
212
|
+
person3:
|
|
213
|
+
age: 3
|
|
214
|
+
spm_units:
|
|
215
|
+
spm_unit:
|
|
216
|
+
members: [person1, person2, person3]
|
|
217
|
+
tax_units:
|
|
218
|
+
tax_unit:
|
|
219
|
+
members: [person1, person2, person3]
|
|
220
|
+
households:
|
|
221
|
+
household:
|
|
222
|
+
members: [person1, person2, person3]
|
|
223
|
+
state_code: IL
|
|
224
|
+
output:
|
|
225
|
+
# https://www.dhs.state.il.us/page.aspx?item=82780
|
|
226
|
+
il_tanf_initial_employment_deduction_person: [323, 0, 0]
|
|
227
|
+
|
|
228
|
+
- name: 2023 monthly test
|
|
229
|
+
period: 2023-01
|
|
230
|
+
absolute_error_margin: 1
|
|
231
|
+
input:
|
|
232
|
+
people:
|
|
233
|
+
person1:
|
|
234
|
+
employment_income: 10_200
|
|
235
|
+
age: 30
|
|
236
|
+
person2:
|
|
237
|
+
age: 5
|
|
238
|
+
person3:
|
|
239
|
+
age: 3
|
|
240
|
+
person4:
|
|
241
|
+
age: 1
|
|
242
|
+
spm_units:
|
|
243
|
+
spm_unit:
|
|
244
|
+
members: [person1, person2, person3, person4]
|
|
245
|
+
tax_units:
|
|
246
|
+
tax_unit:
|
|
247
|
+
members: [person1, person2, person3, person4]
|
|
248
|
+
households:
|
|
249
|
+
household:
|
|
250
|
+
members: [person1, person2, person3, person4]
|
|
251
|
+
state_code: IL
|
|
252
|
+
output:
|
|
253
|
+
# https://www.dhs.state.il.us/page.aspx?item=82780
|
|
254
|
+
il_tanf_initial_employment_deduction_person: [463, 0, 0, 0]
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
state_code: IL
|
|
57
57
|
output:
|
|
58
58
|
il_tanf_childcare_deduction: 375
|
|
59
|
-
il_tanf_spm_unit_fpg: 1_919.17
|
|
60
59
|
il_tanf_payment_level_for_initial_eligibility: 575.75
|
|
61
60
|
il_tanf_initial_employment_deduction_person: [383.83, 0, 0]
|
|
62
61
|
il_tanf_countable_earned_income_for_initial_eligibility: 41.17
|
policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.py
CHANGED
|
@@ -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("
|
|
15
|
+
fpg = spm_unit("il_tanf_assistance_unit_fpg", period)
|
|
16
16
|
|
|
17
17
|
return p.rate * fpg
|
|
@@ -4059,9 +4059,9 @@ policyengine_us/tests/policy/baseline/gov/states/il/dhs/ccap/il_ccap_eligible_ch
|
|
|
4059
4059
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/ccap/il_ccap_immigration_status_eligible_person.yaml,sha256=3pp8P8FsjjdwJP-CYMOJ6g2yQVWZNbaHe0UZj2GilJ4,673
|
|
4060
4060
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/ccap/il_ccap_income_eligible.yaml,sha256=reLYko4lN6Fch7dFHsb3DI-WKxS5oH5QCJJ6clRBNnQ,1610
|
|
4061
4061
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/ccap/il_ccap_parent_meets_working_requirements.yaml,sha256=x9LNMNeQs6CuOnwiHKLoq9HJLMerlecaZ9huxzm0XnM,2298
|
|
4062
|
-
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf.yaml,sha256
|
|
4062
|
+
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf.yaml,sha256=-xgHwpYQ5tXJ6bhveQssH-5E1pJkLBA0AcqRhjMvs3I,5680
|
|
4063
4063
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf_payment_level_for_grant_calculation.yaml,sha256=rA2-oM0WFxsRlEbI9rYiXz2B-9ZPY6K0HAazhZDzR88,2666
|
|
4064
|
-
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.yaml,sha256=
|
|
4064
|
+
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.yaml,sha256=h1_JL3qFzet0ghIGZCD3cCaeOgSI_l-K6wy913XNLtg,502
|
|
4065
4065
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_fpg.yaml,sha256=OeRapbtz-c2zWofKRr9WrQN87hCfX5Dj3EmFi7DgSOI,846
|
|
4066
4066
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_size.yaml,sha256=zkqiYMNA_Chb2s-FgkUQrOZWPmrmty-2Wr5AhCUKgV0,1731
|
|
4067
4067
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/assistance_unit/il_tanf_payment_eligible_child.yaml,sha256=OpvQsqFHCiagWOrrQctlrOuA5zo0WgD9tflPTm9gWpA,1040
|
|
@@ -4075,9 +4075,9 @@ policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/eligibility/il_tanf
|
|
|
4075
4075
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/eligibility/il_tanf_non_financial_eligible.yaml,sha256=DptqeBfabhX9IscKm7rkcP3y9_9s-QkSIgihp5JUQoA,733
|
|
4076
4076
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_childcare_deduction.yaml,sha256=IjvDPB8O0lAuOlUDHfPw7pGMPQkxJJaTclaevAhrrL8,906
|
|
4077
4077
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_fpg.yaml,sha256=s16WRFnWbauY-wqSsfgRNdgyWQjD0Ewy8YrxwKdGBBQ,591
|
|
4078
|
-
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_person.yaml,sha256
|
|
4078
|
+
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_person.yaml,sha256=-l3GXYM8gE8MwffCgF-qdoVufQNqcIqCTXWjHPFZWTM,6219
|
|
4079
4079
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_grant_calculation.yaml,sha256=_Z1lVh7L9QXQf21pX65DRZHfUDWmY3cU0H31CsEu9oQ,1617
|
|
4080
|
-
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_initial_eligibility.yaml,sha256=
|
|
4080
|
+
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_initial_eligibility.yaml,sha256=yr3vQnx5TKi8cwGhDHyl4VWvyw_fSAyxjvUtVR-_7so,1911
|
|
4081
4081
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_gross_earned_income.yaml,sha256=3RihYL4CTmtqnAYwZXsLsc1SJXOSYQWuiuC10s-Nf4w,416
|
|
4082
4082
|
policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/income/unearned/il_tanf_countable_unearned_income.yaml,sha256=Tk_aO8C0jVW1ateWv8U66-_QUXLajf6lsbZDPlOTPkQ,412
|
|
4083
4083
|
policyengine_us/tests/policy/baseline/gov/states/il/idoa/bap/il_bap_eligible.yaml,sha256=bxAIxI1GYL6I-htJnFPMEbbbq4yo0QZ2_b4V9jfboQc,1115
|
|
@@ -6501,8 +6501,7 @@ policyengine_us/variables/gov/states/il/dhs/ccap/eligibility/il_ccap_income_elig
|
|
|
6501
6501
|
policyengine_us/variables/gov/states/il/dhs/ccap/eligibility/il_ccap_parent_meets_working_requirements.py,sha256=4joQ0ujXb1ZVxOuRd2RhNBYPIdpKK9yYS0cwdRvfHXo,938
|
|
6502
6502
|
policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf.py,sha256=QM4fibE08qvX0e53uDO-Ue5K39v7jkIfDDr2QypNUEU,694
|
|
6503
6503
|
policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_payment_level_for_grant_application.py,sha256=s8nEYbkiOa5QfGVpkpgHwbegdR3bP1r7e79e99EMxj8,1606
|
|
6504
|
-
policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.py,sha256=
|
|
6505
|
-
policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_spm_unit_fpg.py,sha256=ficXvkwTHNMNOiFKLMdXkFOG8hj7nsYwUB4hd7UeNEE,852
|
|
6504
|
+
policyengine_us/variables/gov/states/il/dhs/tanf/il_tanf_payment_level_for_initial_eligibility.py,sha256=cSlpyBf1LqMF8Dq1mGI7tl8dyvUiUEHD83JqLVKu7Kg,640
|
|
6506
6505
|
policyengine_us/variables/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_fpg.py,sha256=sOSLU08dwOTYcwF__lh9jLkzxKkn3-H3QR0RgCaQewc,881
|
|
6507
6506
|
policyengine_us/variables/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_size.py,sha256=xYdABo62EPA9optuG2PRGz__ZLaoyd9HKhYSyKNuBOM,487
|
|
6508
6507
|
policyengine_us/variables/gov/states/il/dhs/tanf/assistance_unit/il_tanf_payment_eligible_child.py,sha256=KTifkd0vUkyKMDttstqHm9JctYVFrlKKOYyd_DmO3mE,666
|
|
@@ -8310,8 +8309,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
|
|
|
8310
8309
|
policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
|
|
8311
8310
|
policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
|
|
8312
8311
|
policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
|
|
8313
|
-
policyengine_us-1.
|
|
8314
|
-
policyengine_us-1.
|
|
8315
|
-
policyengine_us-1.
|
|
8316
|
-
policyengine_us-1.
|
|
8317
|
-
policyengine_us-1.
|
|
8312
|
+
policyengine_us-1.386.0.dist-info/METADATA,sha256=JKh1r7eZn5PL8ZSZVyjUqaGcZGXnVAvVEkSKrwK-jWQ,1649
|
|
8313
|
+
policyengine_us-1.386.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8314
|
+
policyengine_us-1.386.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
|
|
8315
|
+
policyengine_us-1.386.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
8316
|
+
policyengine_us-1.386.0.dist-info/RECORD,,
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|