policyengine-us 1.387.0__py3-none-any.whl → 1.387.1__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.

@@ -138,3 +138,39 @@
138
138
  state_fips: 26 # MI
139
139
  output: # expected results from patched TAXSIM35 2024-03-21 version
140
140
  mi_income_tax: 2263.98
141
+
142
+ - name: taxsim_record_25759_2024.yaml
143
+ absolute_error_margin: 2
144
+ period: 2024
145
+ input:
146
+ people:
147
+ person1:
148
+ age: 31
149
+ employment_income: 0.0
150
+ long_term_capital_gains: -3810357
151
+ is_tax_unit_head: true
152
+ person2:
153
+ age: 10
154
+ employment_income: 0
155
+ is_tax_unit_dependent: true
156
+ is_tax_unit_head: false
157
+ is_tax_unit_spouse: false
158
+ tax_units:
159
+ tax_unit:
160
+ members: [person1, person2]
161
+ premium_tax_credit: 0
162
+ local_income_tax: 0
163
+ state_sales_tax: 0
164
+ spm_units:
165
+ spm_unit:
166
+ members: [person1, person2]
167
+ snap: 0
168
+ tanf: 0
169
+ households:
170
+ household:
171
+ members: [person1, person2]
172
+ state_fips: 26
173
+ output:
174
+ mi_household_resources: 0
175
+ mi_home_heating_credit: 441
176
+ mi_income_tax: -441
@@ -0,0 +1,29 @@
1
+ - name: Cannot be negative
2
+ period: 2024
3
+ input:
4
+ net_capital_gains: -2_000
5
+ state_code: MI
6
+ health_insurance_premiums: 0
7
+ above_the_line_deductions: 1_000
8
+ output:
9
+ mi_household_resources: 0
10
+
11
+ - name: Reduced to 0
12
+ period: 2024
13
+ input:
14
+ net_capital_gains: 2_000
15
+ state_code: MI
16
+ health_insurance_premiums: 3_000
17
+ above_the_line_deductions: 1_000
18
+ output:
19
+ mi_household_resources: 0
20
+
21
+ - name: Partially reduced
22
+ period: 2024
23
+ input:
24
+ net_capital_gains: 10_000
25
+ state_code: MI
26
+ health_insurance_premiums: 3_000
27
+ above_the_line_deductions: 1_000
28
+ output:
29
+ mi_household_resources: 6_000
@@ -9,5 +9,19 @@ class mi_household_resources(Variable):
9
9
  definition_period = YEAR
10
10
  defined_for = StateCode.MI
11
11
  reference = "https://law.justia.com/codes/michigan/2022/chapter-206/statute-act-281-of-1967/division-281-1967-1/division-281-1967-1-9/section-206-508/"
12
- adds = "gov.states.mi.tax.income.household_resources"
13
- subtracts = ["health_insurance_premiums", "above_the_line_deductions"]
12
+
13
+ def formula(tax_unit, period, parameters):
14
+ p = parameters(period).gov.states.mi.tax.income
15
+ household_resources = add(tax_unit, period, p.household_resources)
16
+ health_insurance_premiums = add(
17
+ tax_unit, period, ["health_insurance_premiums"]
18
+ )
19
+ above_the_line_deductions = tax_unit(
20
+ "above_the_line_deductions", period
21
+ )
22
+ return max_(
23
+ 0,
24
+ household_resources
25
+ - health_insurance_premiums
26
+ - above_the_line_deductions,
27
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.387.0
3
+ Version: 1.387.1
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -4342,7 +4342,8 @@ policyengine_us/tests/policy/baseline/gov/states/me/tax/income/taxable_income/de
4342
4342
  policyengine_us/tests/policy/baseline/gov/states/me/tax/income/taxable_income/deductions/me_deductions.yaml,sha256=fzwp9dR2OGXKkVcsrKH0gYcm9w7G2-J5QYeC9rkNDCs,853
4343
4343
  policyengine_us/tests/policy/baseline/gov/states/me/tax/income/taxable_income/deductions/me_itemized_deductions_pre_phaseout.yaml,sha256=PkfFZD-onn61NDMLLyOqjKfMpvF9yJX29yohrxVczPY,2649
4344
4344
  policyengine_us/tests/policy/baseline/gov/states/me/tax/income/taxable_income/deductions/me_personal_exemption.yaml,sha256=_1zotldxxQnuLrwel8mITwMXdNdNn-mmlOBSHzhDOHQ,1256
4345
- policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/integration.yaml,sha256=VunV2LgMJ4CaZYAJ8nKoHhO_RSA821T5OpwvYQ5FPLg,4273
4345
+ policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/integration.yaml,sha256=qsOVFORBYHmLK0gQGsYQ59ZbVPMBAsJbMHtAycRi4Nw,5111
4346
+ policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_household_resources.yaml,sha256=Ln1QcNLW29Xgsfy7dxsNIEvs3R4YM5ACSOaXXJGAz1E,636
4346
4347
  policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_income_tax_before_non_refundable_credits.yaml,sha256=SvWn5J3CYM-KFP1poILHcuIeXlGkx5-bylXQ1pQ0df4,367
4347
4348
  policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_income_tax_before_refundable_credits.yaml,sha256=YtMBF7eVrR-lZoU6axbiBgv-qcS3aZoXFBbS2j5PQI8,429
4348
4349
  policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_is_senior_for_tax.yaml,sha256=fDFOrjhOVak4mn2oBYkMFtH7fsv_3a6Y67m2GFFb2RY,270
@@ -6894,7 +6895,7 @@ policyengine_us/variables/gov/states/me/tax/income/taxable_income/deductions/me_
6894
6895
  policyengine_us/variables/gov/states/me/tax/income/taxable_income/deductions/me_itemized_deductions_pre_phaseout.py,sha256=_IPfMJVi640QiBAR4YRXbv1KovJeE-5-SMSr6WSPyQw,1571
6895
6896
  policyengine_us/variables/gov/states/me/tax/income/taxable_income/deductions/personal_exemption/me_personal_exemption_deduction.py,sha256=-ZyMjv-S_JQnfrevGwDBB7_5UHKB8o1dDhi3hTy-hzk,1332
6896
6897
  policyengine_us/variables/gov/states/mi/tax/income/mi_additions.py,sha256=9yQZPz2DDNMAttaNDoMWz6073C15MYuSJR2VQaJFuj4,653
6897
- policyengine_us/variables/gov/states/mi/tax/income/mi_household_resources.py,sha256=AEN1US1upDeAQjKUu-MUE9QzfW46csbr0PY8XIvppJY,533
6898
+ policyengine_us/variables/gov/states/mi/tax/income/mi_household_resources.py,sha256=1Y0B9RT8pP8JgQKd2-QZJ9uyqdWDkeD0zYHB3T4B-fQ,953
6898
6899
  policyengine_us/variables/gov/states/mi/tax/income/mi_income_tax.py,sha256=HuKwe_s6RI6whz_y9Qjzce5Miuy35Sf1e4YQnLJqAM4,324
6899
6900
  policyengine_us/variables/gov/states/mi/tax/income/mi_income_tax_before_non_refundable_credits.py,sha256=BQRvGSzQ-AWhrYBD9UNnHhkwQoxtzDA1rb0IKG9KByg,498
6900
6901
  policyengine_us/variables/gov/states/mi/tax/income/mi_income_tax_before_refundable_credits.py,sha256=piBXX5vaP7FUp6x2LT27WC2yYcyN_5tSxZJbRFPwSUM,640
@@ -8317,8 +8318,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
8317
8318
  policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
8318
8319
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
8319
8320
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
8320
- policyengine_us-1.387.0.dist-info/METADATA,sha256=bcSyKFc5gdTc45OvK47L4EEOjWRmTpyR7VfBBlthM8s,1649
8321
- policyengine_us-1.387.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8322
- policyengine_us-1.387.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8323
- policyengine_us-1.387.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8324
- policyengine_us-1.387.0.dist-info/RECORD,,
8321
+ policyengine_us-1.387.1.dist-info/METADATA,sha256=RyvgRXSNgO24yzTmOUqs9ZrLdzXYwzo1ni3gn83cfNc,1649
8322
+ policyengine_us-1.387.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8323
+ policyengine_us-1.387.1.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8324
+ policyengine_us-1.387.1.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8325
+ policyengine_us-1.387.1.dist-info/RECORD,,