policyengine-us 1.384.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.

@@ -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]
@@ -114,8 +114,8 @@
114
114
  il_tanf_childcare_deduction: 375
115
115
  il_tanf_spm_unit_fpg: 1_919.17
116
116
  il_tanf_payment_level_for_initial_eligibility: 575.75
117
- il_tanf_initial_employment_deduction_person: [383.83, 0, 0]
118
- il_tanf_countable_income_for_initial_eligibility: 41.17
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
120
  il_tanf_assistance_unit_fpg: 1_525.83
121
121
  il_tanf_payment_level_for_grant_calculation: 343.31
@@ -124,12 +124,12 @@
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,16 +158,18 @@
158
158
  members: [person1, person2, person3]
159
159
  state_code: IL
160
160
  output:
161
- il_tanf_childcare_deduction: 375
161
+ il_tanf_childcare_deduction: 33
162
+ il_tanf_assistance_unit_size: 1 # Kids receive ssi
162
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
163
166
  il_tanf_payment_level_for_initial_eligibility: 575.75
164
- il_tanf_initial_employment_deduction_person: [383.83, 0, 0]
165
- il_tanf_countable_income_for_initial_eligibility: 41.17
167
+ il_tanf_initial_employment_deduction_person: [0, 0, 0]
168
+ il_tanf_countable_income_for_initial_eligibility: 33
166
169
  il_tanf_eligible: true
167
- il_tanf_assistance_unit_fpg: 1_132.5
168
170
  il_tanf_payment_level_for_grant_calculation: 84.94
169
- il_tanf_countable_income_for_grant_calculation: 106.25
170
- il_tanf: 0
171
+ il_tanf_countable_income_for_grant_calculation: 8
172
+ il_tanf: 77
171
173
 
172
174
  - name: taxsim_record_277465_2021.yaml
173
175
  absolute_error_margin: 0.3
@@ -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,22 +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
- il_tanf_initial_employment_deduction_person: 2_585.25
9
+ il_tanf_initial_employment_deduction_person: 2_874
10
10
 
11
11
  - name: Case 2, household size of 2 with $10000 earned income.
12
12
  period: 2023
13
13
  input:
14
- spm_unit_size: 2
14
+ il_tanf_assistance_unit_size: 2
15
15
  il_tanf_gross_earned_income: 10_000
16
- is_tax_unit_head_or_spouse: true
17
16
  state_code: IL
18
17
  output:
19
- il_tanf_initial_employment_deduction_person: 3_486
18
+ il_tanf_initial_employment_deduction_person: 5_409
20
19
 
21
20
  - name: Case 3, household size of 1 with $10000 earned income, but not head or spouse.
22
21
  period: 2023
@@ -37,3 +36,111 @@
37
36
  state_code: IL
38
37
  output:
39
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]
@@ -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
@@ -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("il_tanf_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.384.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
@@ -4057,7 +4057,7 @@ 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=4osqjitxetVD2cngclhjs_h9utFowkvWgXDm0Ae6tUE,5746
4060
+ policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/il_tanf.yaml,sha256=417ZTRNbpODR7ZpOqBlu1qXz59F96D5Uq-zDV6Ub7q4,5764
4061
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
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
4063
  policyengine_us/tests/policy/baseline/gov/states/il/dhs/tanf/assistance_unit/il_tanf_assistance_unit_fpg.yaml,sha256=OeRapbtz-c2zWofKRr9WrQN87hCfX5Dj3EmFi7DgSOI,846
@@ -4072,7 +4072,8 @@ 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=Jqwafl5vM_sH6wn4GKsQqcn6Uk9PBG9_FmZzt5MdX1U,1105
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
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
@@ -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
@@ -6513,7 +6514,8 @@ policyengine_us/variables/gov/states/il/dhs/tanf/eligibility/il_tanf_non_financi
6513
6514
  policyengine_us/variables/gov/states/il/dhs/tanf/income/il_tanf_countable_income_for_grant_calculation.py,sha256=baWtisrhHtX91nqZf7aReoIsn6OxxxfWsx7YKL00JWo,565
6514
6515
  policyengine_us/variables/gov/states/il/dhs/tanf/income/il_tanf_countable_income_for_initial_eligibility.py,sha256=72lnW9HwgASOyOYdVx-I-M5mNneJB1L_WrJNVaufDns,562
6515
6516
  policyengine_us/variables/gov/states/il/dhs/tanf/income/deductions/il_tanf_childcare_deduction.py,sha256=Gi8hVZAR3GSremvczW4fXOK2HtbPbwjaULN4S2XC5u0,973
6516
- policyengine_us/variables/gov/states/il/dhs/tanf/income/deductions/il_tanf_initial_employment_deduction_person.py,sha256=wltrTLqWvEOGZEn2V8juzZMtMVF7xxefIWkTe-dTkYQ,1227
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
6517
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
6518
6520
  policyengine_us/variables/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_earned_income_for_initial_eligibility.py,sha256=d1Zukl9bocUSaCkHTBARkUamyKfE7MP148rZr3PzK1A,992
6519
6521
  policyengine_us/variables/gov/states/il/dhs/tanf/income/earned/il_tanf_countable_gross_earned_income.py,sha256=o4L9NFEi1cjMcocrpup-sG0oHqS4tuzbh4krgnglA_E,617
@@ -8305,8 +8307,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
8305
8307
  policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
8306
8308
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
8307
8309
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
8308
- policyengine_us-1.384.0.dist-info/METADATA,sha256=aJ-vrb45HKRVPA6s-tgMapY3darf6FzQdUqGIwnKe6g,1649
8309
- policyengine_us-1.384.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8310
- policyengine_us-1.384.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8311
- policyengine_us-1.384.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8312
- policyengine_us-1.384.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,,