policyengine-us 1.441.2__py3-none-any.whl → 1.442.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.
- policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/alternative_minimum_tax/integration.yaml +26 -0
- policyengine_us/variables/gov/states/ca/tax/income/alternative_minimum_tax/exemption/ca_amt_exemption.py +4 -2
- policyengine_us/variables/gov/states/ca/tax/income/ca_income_tax.py +1 -0
- {policyengine_us-1.441.2.dist-info → policyengine_us-1.442.0.dist-info}/METADATA +1 -1
- {policyengine_us-1.441.2.dist-info → policyengine_us-1.442.0.dist-info}/RECORD +8 -7
- {policyengine_us-1.441.2.dist-info → policyengine_us-1.442.0.dist-info}/WHEEL +0 -0
- {policyengine_us-1.441.2.dist-info → policyengine_us-1.442.0.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.441.2.dist-info → policyengine_us-1.442.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Integration test from GitHub issue #1279
|
|
2
|
+
# Validates AMT calculation against TAXSIM35
|
|
3
|
+
- name: Issue 1279 - Joint filers with employment income and capital gains
|
|
4
|
+
period: 2021
|
|
5
|
+
absolute_error_margin: 1
|
|
6
|
+
input:
|
|
7
|
+
people:
|
|
8
|
+
person1:
|
|
9
|
+
age: 55
|
|
10
|
+
employment_income: 177_000
|
|
11
|
+
long_term_capital_gains: 100_000
|
|
12
|
+
person2:
|
|
13
|
+
age: 58
|
|
14
|
+
employment_income: 176_000
|
|
15
|
+
tax_units:
|
|
16
|
+
tax_unit:
|
|
17
|
+
members: [person1, person2]
|
|
18
|
+
households:
|
|
19
|
+
household:
|
|
20
|
+
members: [person1, person2]
|
|
21
|
+
state_code: TX
|
|
22
|
+
output:
|
|
23
|
+
# TAXSIM35 and USI-Tax-Analyzer both produce zero AMT for this case
|
|
24
|
+
alternative_minimum_tax: 0
|
|
25
|
+
# Expected income tax from TAXSIM35
|
|
26
|
+
income_tax: 85_538
|
|
@@ -29,10 +29,12 @@ class ca_amt_exemption(Variable):
|
|
|
29
29
|
reduced_amti_rate = reduced_amti * p_irs.phase_out.rate
|
|
30
30
|
# Line 6
|
|
31
31
|
adult_exemption = max_(exemption_max_amount - reduced_amti_rate, 0)
|
|
32
|
-
# Eligible children receive an increased exemption amount
|
|
32
|
+
# Eligible children receive an increased exemption amount.
|
|
33
|
+
# This applies when the HEAD of the tax unit is a child dependent.
|
|
33
34
|
person = tax_unit.members
|
|
34
35
|
eligible_child = person("is_child_dependent", period)
|
|
35
|
-
|
|
36
|
+
is_head = person("is_tax_unit_head", period)
|
|
37
|
+
head_is_eligible_child = tax_unit.any(eligible_child & is_head)
|
|
36
38
|
# Line 7
|
|
37
39
|
exemption_amount_child = p_irs.child.amount
|
|
38
40
|
# Line 8
|
|
@@ -3705,6 +3705,7 @@ policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/validation.yaml
|
|
|
3705
3705
|
policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/alternative_minimum_tax/alternative_minimum_tax.yaml,sha256=0Yqqrj4L7YVXnXHBgWaJVrJjjQlrH2SsvG1Y3CS0sk0,2799
|
|
3706
3706
|
policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/alternative_minimum_tax/amt_part_iii_required.yaml,sha256=CNOU2FsrnO8jOhCg0fDEfEUI_ki7C-9VEAriVNH_XtI,360
|
|
3707
3707
|
policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/alternative_minimum_tax/amt_tax_including_cg.yaml,sha256=Cq5Xl3xFSwU6QdXomnxLEu97KNxuWmPZu7SYS112hNk,1356
|
|
3708
|
+
policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/alternative_minimum_tax/integration.yaml,sha256=3D2Qo3jwKUciw8hFIn5mWCx9hM3HOPKb3qeXYf7ygi4,734
|
|
3708
3709
|
policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/alternative_minimum_tax/regular_tax_before_credits.yaml,sha256=Yf7twOUpCAQT7w1gohGYZ_ArYzM_zXMpppvHKLzaxmE,243
|
|
3709
3710
|
policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/alternative_minimum_tax/base_tax/amt_base_tax.yaml,sha256=SXdsIDBaCdOyYvRwtStZfl3GKynf0EjGU8H8bG2OUjs,457
|
|
3710
3711
|
policyengine_us/tests/policy/baseline/gov/irs/tax/federal_income/alternative_minimum_tax/base_tax/amt_higher_base_tax.yaml,sha256=nvJD0yK_3HHqTGPEWYLhpYFM3xvmOP9q-aerHFOhsxY,488
|
|
@@ -6468,7 +6469,7 @@ policyengine_us/variables/gov/states/ca/edd/ca_state_disability_insurance.py,sha
|
|
|
6468
6469
|
policyengine_us/variables/gov/states/ca/tax/income/ca_additions.py,sha256=M8Jnh0cyHLerQL4GABNZFAAMilGrcaZ6AAyaDhVE2mE,302
|
|
6469
6470
|
policyengine_us/variables/gov/states/ca/tax/income/ca_agi.py,sha256=49RW-U0tw_3adgPuyEC7DoTMnEyc2zckioSk7XxjLgY,437
|
|
6470
6471
|
policyengine_us/variables/gov/states/ca/tax/income/ca_agi_subtractions.py,sha256=MPGy9uA1CSA3_nJ7cgw6ALCQgbctKWWBfPYNIuXZxmU,704
|
|
6471
|
-
policyengine_us/variables/gov/states/ca/tax/income/ca_income_tax.py,sha256=
|
|
6472
|
+
policyengine_us/variables/gov/states/ca/tax/income/ca_income_tax.py,sha256=PkW2QE1bOc_nYN4o_2aPE8kxYgiTbCbwXiZUihUS2NU,486
|
|
6472
6473
|
policyengine_us/variables/gov/states/ca/tax/income/ca_income_tax_before_credits.py,sha256=Gwy4_WyT1WgDiddSkSOVdYH1UR2i6fm2mWPUKE0ZuDs,1224
|
|
6473
6474
|
policyengine_us/variables/gov/states/ca/tax/income/ca_income_tax_before_refundable_credits.py,sha256=4kMqAPD6Cuxg6nEsnrTsD5ATv8XRuDMVCR8TQdUewkU,587
|
|
6474
6475
|
policyengine_us/variables/gov/states/ca/tax/income/ca_mental_health_services_tax.py,sha256=L84KLGVHfmd0VPkuO0DULK7Dp2KXPot95srQWLKSOoo,580
|
|
@@ -6479,7 +6480,7 @@ policyengine_us/variables/gov/states/ca/tax/income/alternative_minimum_tax/ca_am
|
|
|
6479
6480
|
policyengine_us/variables/gov/states/ca/tax/income/alternative_minimum_tax/amti/ca_amti.py,sha256=20JgrVCrmzuytg3sijbGhGT2c_ebgM0h5FCMgYppUlY,1355
|
|
6480
6481
|
policyengine_us/variables/gov/states/ca/tax/income/alternative_minimum_tax/amti/ca_amti_adjustments.py,sha256=dc78cz71b8GgoIm-ozjMNwHlIgOADd8zr5oQM-8MZv4,1010
|
|
6481
6482
|
policyengine_us/variables/gov/states/ca/tax/income/alternative_minimum_tax/amti/ca_pre_exemption_amti.py,sha256=IOsGi4ZEPhH4v-dIy57Nrpy0pSUkfwYHt0kVYTtJWpo,484
|
|
6482
|
-
policyengine_us/variables/gov/states/ca/tax/income/alternative_minimum_tax/exemption/ca_amt_exemption.py,sha256=
|
|
6483
|
+
policyengine_us/variables/gov/states/ca/tax/income/alternative_minimum_tax/exemption/ca_amt_exemption.py,sha256=M7b655qiwN2Zi1dTYPoHg7cGMCN6NQC0teuWw3bbQFI,1916
|
|
6483
6484
|
policyengine_us/variables/gov/states/ca/tax/income/credits/ca_cdcc.py,sha256=X63cMm_Oiiumj_-Fc6hFOxwzQamn3ugI9N5bhYWRBj0,684
|
|
6484
6485
|
policyengine_us/variables/gov/states/ca/tax/income/credits/ca_cdcc_rate.py,sha256=kY068sQYzeBHVUCITxNJYY9Xl10egovfBHs7Bpno2BA,1425
|
|
6485
6486
|
policyengine_us/variables/gov/states/ca/tax/income/credits/ca_cdcc_relevant_expenses.py,sha256=c8ak6YIzDGza-slmkvDAqNpCp9ruLZ5leHeJktrgTAk,1238
|
|
@@ -8883,8 +8884,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
|
|
|
8883
8884
|
policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
|
|
8884
8885
|
policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
|
|
8885
8886
|
policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
|
|
8886
|
-
policyengine_us-1.
|
|
8887
|
-
policyengine_us-1.
|
|
8888
|
-
policyengine_us-1.
|
|
8889
|
-
policyengine_us-1.
|
|
8890
|
-
policyengine_us-1.
|
|
8887
|
+
policyengine_us-1.442.0.dist-info/METADATA,sha256=lGbNU3cPagH0RtCmzdV7nN1lOZApDIkHoSw_5QeNy-c,1649
|
|
8888
|
+
policyengine_us-1.442.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8889
|
+
policyengine_us-1.442.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
|
|
8890
|
+
policyengine_us-1.442.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
8891
|
+
policyengine_us-1.442.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|