policyengine-us 1.449.0__py3-none-any.whl → 1.449.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.
- policyengine_us/parameters/gov/states/mt/tax/income/deductions/itemized/spouse_allocation_rate.yaml +13 -0
- policyengine_us/tests/policy/baseline/household/demographic/geographic/state_group.yaml +21 -0
- policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/general/mt_itemized_deductions_indiv.py +3 -2
- policyengine_us/variables/household/demographic/geographic/state_group.py +8 -5
- {policyengine_us-1.449.0.dist-info → policyengine_us-1.449.2.dist-info}/METADATA +1 -1
- {policyengine_us-1.449.0.dist-info → policyengine_us-1.449.2.dist-info}/RECORD +9 -8
- {policyengine_us-1.449.0.dist-info → policyengine_us-1.449.2.dist-info}/WHEEL +0 -0
- {policyengine_us-1.449.0.dist-info → policyengine_us-1.449.2.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.449.0.dist-info → policyengine_us-1.449.2.dist-info}/licenses/LICENSE +0 -0
policyengine_us/parameters/gov/states/mt/tax/income/deductions/itemized/spouse_allocation_rate.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
description: Share of tax unit itemized deductions allocated to each spouse when married filing separately on the same form. This is not a policy parameter but a mathematical representation of "divided equally".
|
|
2
|
+
values:
|
|
3
|
+
# 0.5 means each spouse gets 50% of joint deductions
|
|
4
|
+
2021-01-01: 0.5
|
|
5
|
+
metadata:
|
|
6
|
+
label: Montana itemized deductions spouse allocation rate
|
|
7
|
+
period: year
|
|
8
|
+
unit: /1
|
|
9
|
+
reference:
|
|
10
|
+
- title: Montana Administrative Rule 42.15.524 - Itemized Deductions of Married Taxpayers
|
|
11
|
+
href: https://rules.mt.gov/gateway/ruleno.asp?RN=42.15.524
|
|
12
|
+
- title: Montana Form 2 Instructions
|
|
13
|
+
href: https://revenue.mt.gov/publications/montana-form-2-individual-income-tax-return-forms-and-instructions-includes-form-2ec
|
|
@@ -11,3 +11,24 @@
|
|
|
11
11
|
state_code: AK
|
|
12
12
|
output:
|
|
13
13
|
state_group: AK
|
|
14
|
+
|
|
15
|
+
- name: Contiguous state does not cause empty array indexing error
|
|
16
|
+
period: 2024
|
|
17
|
+
input:
|
|
18
|
+
state_code: TX
|
|
19
|
+
output:
|
|
20
|
+
state_group: CONTIGUOUS_US
|
|
21
|
+
|
|
22
|
+
- name: Hawaii
|
|
23
|
+
period: 2024
|
|
24
|
+
input:
|
|
25
|
+
state_code: HI
|
|
26
|
+
output:
|
|
27
|
+
state_group: HI
|
|
28
|
+
|
|
29
|
+
- name: Puerto Rico
|
|
30
|
+
period: 2024
|
|
31
|
+
input:
|
|
32
|
+
state_code: PR
|
|
33
|
+
output:
|
|
34
|
+
state_group: PR
|
|
@@ -15,11 +15,12 @@ class mt_itemized_deductions_indiv(Variable):
|
|
|
15
15
|
defined_for = StateCode.MT
|
|
16
16
|
|
|
17
17
|
def formula(person, period, parameters):
|
|
18
|
-
p = parameters(period).gov.
|
|
18
|
+
p = parameters(period).gov.states.mt.tax.income.deductions.itemized
|
|
19
19
|
# Since we only compute the federal charitable deduction at the tax unit level,
|
|
20
20
|
# we will split the value between each spouse
|
|
21
21
|
charitable_deduction = (
|
|
22
|
-
person.tax_unit("charitable_deduction", period)
|
|
22
|
+
person.tax_unit("charitable_deduction", period)
|
|
23
|
+
* p.spouse_allocation_rate
|
|
23
24
|
)
|
|
24
25
|
head_or_spouse = person("is_tax_unit_head_or_spouse", period)
|
|
25
26
|
# The interest deduction is the sum of mortagage and investment interest expenses
|
|
@@ -22,8 +22,11 @@ class state_group(Variable):
|
|
|
22
22
|
def formula(household, period, parameters):
|
|
23
23
|
NON_CONTIGUOUS_STATES = ("AK", "HI", "GU", "PR", "VI")
|
|
24
24
|
state_code = household("state_code", period).decode_to_str()
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
is_non_contiguous = np.isin(state_code, NON_CONTIGUOUS_STATES)
|
|
26
|
+
encoded = np.empty(state_code.shape, dtype=object)
|
|
27
|
+
encoded[:] = StateGroup.CONTIGUOUS_US
|
|
28
|
+
if is_non_contiguous.any():
|
|
29
|
+
encoded[is_non_contiguous] = StateGroup.encode(
|
|
30
|
+
state_code[is_non_contiguous]
|
|
31
|
+
).decode()
|
|
32
|
+
return encoded
|
|
@@ -2351,6 +2351,7 @@ policyengine_us/parameters/gov/states/mt/tax/income/deductions/child_dependent_c
|
|
|
2351
2351
|
policyengine_us/parameters/gov/states/mt/tax/income/deductions/child_dependent_care_expense/cap.yaml,sha256=iHSLHVcJATDRhvdm-78q1kbqWPZn1AFISkdto84a270,1235
|
|
2352
2352
|
policyengine_us/parameters/gov/states/mt/tax/income/deductions/child_dependent_care_expense/phase_out.yaml,sha256=ruoPcLQRtcjLhccgOM_U1ehUifJPDNiY3usUmzW9FC8,1327
|
|
2353
2353
|
policyengine_us/parameters/gov/states/mt/tax/income/deductions/itemized/misc_deductions.yaml,sha256=KpGg0WFhhqSNDnjMv1ZPPMnvA9JD--KSqFjOOmTLNbI,1131
|
|
2354
|
+
policyengine_us/parameters/gov/states/mt/tax/income/deductions/itemized/spouse_allocation_rate.yaml,sha256=IC7qomN8o1IyIiFpMn64gvZK_ZU9iaCYYlUNY23KFQA,735
|
|
2354
2355
|
policyengine_us/parameters/gov/states/mt/tax/income/deductions/itemized/federal_income_tax/cap.yaml,sha256=bxxKOGHWffcY90i-t9pEeJCO5nSUDn3pbnEizNW6mlw,908
|
|
2355
2356
|
policyengine_us/parameters/gov/states/mt/tax/income/deductions/standard/cap.yaml,sha256=8OkIOTxFo5K_w4a25YRPlTnlhPnxL9jXvF3ezg8445M,1532
|
|
2356
2357
|
policyengine_us/parameters/gov/states/mt/tax/income/deductions/standard/floor.yaml,sha256=XJR7ZH-GbTYTUclbzLrBeOFt7Xv8J6odANO93AqNkMs,1522
|
|
@@ -5527,7 +5528,7 @@ policyengine_us/tests/policy/baseline/household/demographic/age/is_wa_adult.yaml
|
|
|
5527
5528
|
policyengine_us/tests/policy/baseline/household/demographic/age/monthly_age.yaml,sha256=P6X40TifnTdtuG4kAkWhxN53nrh672A12sbsa54hkh4,100
|
|
5528
5529
|
policyengine_us/tests/policy/baseline/household/demographic/geographic/in_nyc.yaml,sha256=5YCwV7xV3ltHomN3-feZLcIrkMomX1oWvlz0-NAqh9U,320
|
|
5529
5530
|
policyengine_us/tests/policy/baseline/household/demographic/geographic/lives_in_vehicle.yaml,sha256=TaFZl3mSZl7wcuQvfCy-mmhBCzAfNZ2EXnMAPs0ZErw,585
|
|
5530
|
-
policyengine_us/tests/policy/baseline/household/demographic/geographic/state_group.yaml,sha256=
|
|
5531
|
+
policyengine_us/tests/policy/baseline/household/demographic/geographic/state_group.yaml,sha256=8MwFGdWOBNt3tdM3jgDJW3AmEolO1jN-3600ZOjatMQ,527
|
|
5531
5532
|
policyengine_us/tests/policy/baseline/household/demographic/geographic/state_name.yaml,sha256=wv0gP9Cp0tOAWapOYFCZL2nLPRgs2BmTp9xnelFPFGo,154
|
|
5532
5533
|
policyengine_us/tests/policy/baseline/household/demographic/geographic/county/county.yaml,sha256=hMg6qJf_W6WkIXPJXPS0orEhIMIfLhcEnsrMJkPUCPk,1344
|
|
5533
5534
|
policyengine_us/tests/policy/baseline/household/demographic/geographic/county/first_county_in_state.yaml,sha256=cLAyzsr2ztmvZwwPjtR06dc-IK1ZN3krMtKTFe5Wkek,446
|
|
@@ -7634,7 +7635,7 @@ policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/federal_i
|
|
|
7634
7635
|
policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/federal_itemization/mt_itemized_deductions_for_federal_itemization_joint.py,sha256=a4TVSDKg54uvfA1iOPJ9m6zfE04-iAn9JheC_aTcgRo,1439
|
|
7635
7636
|
policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/federal_tax/mt_federal_income_tax_deduction_indiv.py,sha256=NF01DYts1xc9QP1NX0npTT0Ok02FIBMD3O2-pdWvnQ8,1215
|
|
7636
7637
|
policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/federal_tax/mt_federal_income_tax_deduction_unit.py,sha256=TLBnvWvCHwSCKUtsFXTA2qOXlXCdc1nZfeIQCGxEVyg,1098
|
|
7637
|
-
policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/general/mt_itemized_deductions_indiv.py,sha256=
|
|
7638
|
+
policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/general/mt_itemized_deductions_indiv.py,sha256=G9akLXRLUMCQmPGeUldG7rtGPnW5PD2OgBNVNVxcjF8,1770
|
|
7638
7639
|
policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/general/mt_itemized_deductions_joint.py,sha256=XbaOivcw3qtxuaKfwI1YIccVEqTcFnyyn-yLTqM-nEY,1396
|
|
7639
7640
|
policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/general/mt_misc_deductions.py,sha256=yYEinUNagekMl_d46Ue8O3YJxcMjaTFiQ3BsIMIebwM,650
|
|
7640
7641
|
policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/medical/mt_medical_expense_deduction_indiv.py,sha256=sigYJ0m7K-5wStBGnGw0jPasRUjH1e_wrCHX_bXm8Yw,1121
|
|
@@ -8521,7 +8522,7 @@ policyengine_us/variables/household/demographic/geographic/lives_in_vehicle.py,s
|
|
|
8521
8522
|
policyengine_us/variables/household/demographic/geographic/safmr_used_for_hcv.py,sha256=13bT4Px5P1eZwg4G3PPAtfno6Mw9O7wamHe_dtV5Cn8,250
|
|
8522
8523
|
policyengine_us/variables/household/demographic/geographic/state_code.py,sha256=y0AR7Lk0PnCulq-v40uQAYgGrX82Y7FF5MEGk27Ani4,1322
|
|
8523
8524
|
policyengine_us/variables/household/demographic/geographic/state_code_str.py,sha256=xTXajj8A7c-316HJUpChvnpjoRvpRmwqQ0-xF7vaH9s,355
|
|
8524
|
-
policyengine_us/variables/household/demographic/geographic/state_group.py,sha256=
|
|
8525
|
+
policyengine_us/variables/household/demographic/geographic/state_group.py,sha256=qQRPxnIOdtZOBQbjW0ZAo1M-mDyCGysUxTxbm4vNi-0,995
|
|
8525
8526
|
policyengine_us/variables/household/demographic/geographic/state_group_str.py,sha256=YVapmNgz-QhCZXVfVnU72_G_fijilHLJ1kBDThX9IUE,359
|
|
8526
8527
|
policyengine_us/variables/household/demographic/geographic/state_name.py,sha256=tfpURwlCmHRJkk4m0_NVPInByKbWY0Upq7sbZUobZIs,1495
|
|
8527
8528
|
policyengine_us/variables/household/demographic/geographic/tax_unit_state.py,sha256=yQCj1TgJplNL7EGOx59C9av7isbHsyThaWheZMCjSFg,282
|
|
@@ -8985,8 +8986,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
|
|
|
8985
8986
|
policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
|
|
8986
8987
|
policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
|
|
8987
8988
|
policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
|
|
8988
|
-
policyengine_us-1.449.
|
|
8989
|
-
policyengine_us-1.449.
|
|
8990
|
-
policyengine_us-1.449.
|
|
8991
|
-
policyengine_us-1.449.
|
|
8992
|
-
policyengine_us-1.449.
|
|
8989
|
+
policyengine_us-1.449.2.dist-info/METADATA,sha256=HkCCVTuWI_z-mfhPuKMMAnAasrIQWYZf1XpCqxLw4Is,1649
|
|
8990
|
+
policyengine_us-1.449.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
8991
|
+
policyengine_us-1.449.2.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
|
|
8992
|
+
policyengine_us-1.449.2.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
8993
|
+
policyengine_us-1.449.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|