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

@@ -0,0 +1,48 @@
1
+ - name: 0-WI.yaml
2
+ absolute_error_margin: 2
3
+ period: 2024
4
+ input:
5
+ people:
6
+ person1:
7
+ age: 40
8
+ employment_income: 0.0
9
+ ssi: 0
10
+ wic: 0
11
+ head_start: 0
12
+ early_head_start: 0
13
+ commodity_supplemental_food_program: 0
14
+ short_term_capital_gains: -896056.95
15
+ partnership_s_corp_income: -727887.75
16
+ taxable_interest_income: 0.012324943
17
+ is_tax_unit_head: true
18
+ person2:
19
+ age: 40
20
+ employment_income: 0.0
21
+ ssi: 0
22
+ wic: 0
23
+ head_start: 0
24
+ early_head_start: 0
25
+ commodity_supplemental_food_program: 0
26
+ short_term_capital_gains: -896056.95
27
+ partnership_s_corp_income: -727887.75
28
+ taxable_interest_income: 0.012324943
29
+ is_tax_unit_spouse: true
30
+ tax_units:
31
+ tax_unit:
32
+ members: [person1, person2]
33
+ premium_tax_credit: 0
34
+ local_income_tax: 0
35
+ state_sales_tax: 0
36
+ spm_units:
37
+ spm_unit:
38
+ members: [person1, person2]
39
+ snap: 0
40
+ tanf: 0
41
+ free_school_meals: 0
42
+ reduced_price_school_meals: 0
43
+ households:
44
+ household:
45
+ members: [person1, person2]
46
+ state_fips: 55
47
+ output:
48
+ wi_income_tax: 0
@@ -20,11 +20,13 @@ class wi_married_couple_credit(Variable):
20
20
  fstatus = tax_unit("filing_status", period)
21
21
  eligible = fstatus == fstatus.possible_values.JOINT
22
22
  p = parameters(period).gov.states.wi.tax.income.credits
23
- income = add(tax_unit.members, period, p.married_couple.income_sources)
24
- is_head = tax_unit.members("is_tax_unit_head", period)
25
- is_spouse = tax_unit.members("is_tax_unit_spouse", period)
26
- head_income = tax_unit.sum(is_head * income)
27
- spouse_income = tax_unit.sum(is_spouse * income)
23
+ person = tax_unit.members
24
+ income = add(person, period, p.married_couple.income_sources)
25
+ floored_income = max_(0, income)
26
+ is_head = person("is_tax_unit_head", period)
27
+ is_spouse = person("is_tax_unit_spouse", period)
28
+ head_income = tax_unit.sum(is_head * floored_income)
29
+ spouse_income = tax_unit.sum(is_spouse * floored_income)
28
30
  lower_income = min_(head_income, spouse_income)
29
31
  return min_(
30
32
  eligible * lower_income * p.married_couple.rate,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.424.1
3
+ Version: 1.424.2
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -5274,6 +5274,7 @@ policyengine_us/tests/policy/baseline/gov/states/wa/dshs/tanf/wa_tanf_resources_
5274
5274
  policyengine_us/tests/policy/baseline/gov/states/wa/tax/income/wa_capital_gains_tax.yaml,sha256=X_Iw0T96PfRa3ZlicJD82_X54mIo0D8aYPbejLqlVis,606
5275
5275
  policyengine_us/tests/policy/baseline/gov/states/wa/tax/income/wa_income_tax.yaml,sha256=dZJUrOdPucb2lt2pCp_B8JYhs-p4XMbG59_3P-MFXKU,246
5276
5276
  policyengine_us/tests/policy/baseline/gov/states/wa/tax/income/credits/wa_working_families_tax_credit.yaml,sha256=rmvFm8gGJnmft6FqTKH4JcCPSC2uwjRS4vhsHh52awo,661
5277
+ policyengine_us/tests/policy/baseline/gov/states/wi/tax/income/integration.yaml,sha256=sIFZbpS2HfD49pB907Pl0Pr_dz2_HU3O7CLc58T1CZw,1236
5277
5278
  policyengine_us/tests/policy/baseline/gov/states/wi/tax/income/wi_additional_exemption.yaml,sha256=8DvJWWNTF3-oX_SZbgYc1GyVgHdAcNt6WAjd40nidOA,435
5278
5279
  policyengine_us/tests/policy/baseline/gov/states/wi/tax/income/wi_base_exemption.yaml,sha256=k9OFbFeMGvtwPUXm1fL06899cYqEG7m1w_uhXD4YQJs,141
5279
5280
  policyengine_us/tests/policy/baseline/gov/states/wi/tax/income/wi_capital_gain_loss_addition.yaml,sha256=VPQY_6bSRGGQxVqOLIYjbX1DDSn96WEESF2p0nkPdvA,870
@@ -8193,7 +8194,7 @@ policyengine_us/variables/gov/states/wi/tax/income/credits/homestead/wi_homestea
8193
8194
  policyengine_us/variables/gov/states/wi/tax/income/credits/homestead/wi_homestead_income.py,sha256=4Edv0IB2qRMl-wvVXzM6ElvtoK46Lipu1cmCZxskQ8U,714
8194
8195
  policyengine_us/variables/gov/states/wi/tax/income/credits/homestead/wi_homestead_property_tax.py,sha256=hoDjQ7RUQlFNhRHN6oReQ8WtBQGPBwZdhjZMRQGVivw,771
8195
8196
  policyengine_us/variables/gov/states/wi/tax/income/credits/itemized_deduction/wi_itemized_deduction_credit.py,sha256=fsyA38gH1xOdFg004PYcwD7CJcWljTZoqbCNaV9jAs8,930
8196
- policyengine_us/variables/gov/states/wi/tax/income/credits/married_couple/wi_married_couple_credit.py,sha256=eGJwJsWs2Z9K-AaQJl8s_lkwY6LE0oXVuod5C-16kNM,1440
8197
+ policyengine_us/variables/gov/states/wi/tax/income/credits/married_couple/wi_married_couple_credit.py,sha256=_WUS1sZcu88Fb51dF5XDIhHa0JhQL-T4zcCSDnIgYuc,1501
8197
8198
  policyengine_us/variables/gov/states/wi/tax/income/credits/property_tax/wi_property_tax_credit.py,sha256=tWMVjvAIvHbuSNgmABnPp82XpFSkWWClx69y0ao4-B0,1043
8198
8199
  policyengine_us/variables/gov/states/wi/tax/income/exemptions/wi_additional_exemption.py,sha256=HJ-w3A1oGaAUpO_gk115t6xthUH3Gx8GBz29ZTEbqXg,1120
8199
8200
  policyengine_us/variables/gov/states/wi/tax/income/exemptions/wi_base_exemption.py,sha256=JPc7qm8VSEjkeJX0SRkavyy6QFlnhHX49yM9nR4I81w,885
@@ -8838,8 +8839,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
8838
8839
  policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
8839
8840
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
8840
8841
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
8841
- policyengine_us-1.424.1.dist-info/METADATA,sha256=r4-PjHqTjyHASd7TZYQ1-ASzA-K9BkDQhViJ04Q2Cwc,1649
8842
- policyengine_us-1.424.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8843
- policyengine_us-1.424.1.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8844
- policyengine_us-1.424.1.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8845
- policyengine_us-1.424.1.dist-info/RECORD,,
8842
+ policyengine_us-1.424.2.dist-info/METADATA,sha256=yu5b8tKpVGkawo_yMwZNJJQWugaxeYGKBwfSWGTSI6k,1649
8843
+ policyengine_us-1.424.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8844
+ policyengine_us-1.424.2.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8845
+ policyengine_us-1.424.2.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8846
+ policyengine_us-1.424.2.dist-info/RECORD,,