-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the Montana CTC for the enacted policies (#5578)
* Remove the Montana CTC for the enacted policies Fixes #5577 * minor * remove from state ctcs
- Loading branch information
1 parent
1ef1d68
commit 6cb1a4b
Showing
18 changed files
with
254 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- bump: patch | ||
changes: | ||
fixes: | ||
- Convert the Montana Child Tax Credit to a reform. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
policyengine_us/parameters/gov/contrib/states/mt/ctc/in_effect.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
description: The Montana Child Tax Credit is in effect if this is true. | ||
|
||
values: | ||
0000-01-01: false | ||
|
||
metadata: | ||
unit: bool | ||
period: year | ||
label: Montana Child Tax Credit in effect | ||
reference: | ||
- title: 2023 Montana Legislature, House Bill No. 268, Section 1.(2) & Section 1.(7)-(c) | ||
href: https://leg.mt.gov/bills/2023/billhtml/HB0268.htm | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .mt_ctc import ( | ||
create_mt_ctc_reform, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
from policyengine_us.model_api import * | ||
from policyengine_core.periods import period as period_ | ||
from policyengine_core.periods import instant | ||
|
||
|
||
def create_mt_ctc() -> Reform: | ||
class mt_ctc(Variable): | ||
value_type = float | ||
entity = TaxUnit | ||
label = "Montana Child Tax Credit" | ||
definition_period = YEAR | ||
unit = USD | ||
reference = "https://leg.mt.gov/bills/2023/billpdf/HB0268.pdf" | ||
defined_for = "mt_ctc_eligible" | ||
|
||
def formula(tax_unit, period, parameters): | ||
p = parameters(period).gov.contrib.states.mt.ctc | ||
person = tax_unit.members | ||
age = person("age", period) | ||
credit_amount = tax_unit.sum(p.amount.calc(age)) | ||
# Credit gets reduced by an amount for each increment that AGI exceeds a certain threshold | ||
agi = tax_unit("adjusted_gross_income", period) | ||
excess = max_(agi - p.reduction.threshold, 0) | ||
increments = excess // p.reduction.increment | ||
reduction = p.reduction.amount * increments | ||
return max_(credit_amount - reduction, 0) | ||
|
||
class mt_ctc_eligible(Variable): | ||
value_type = bool | ||
entity = TaxUnit | ||
label = "Eligible for the Montana Child Tax Credit" | ||
definition_period = YEAR | ||
reference = "https://leg.mt.gov/bills/2023/billpdf/HB0268.pdf" | ||
defined_for = StateCode.MT | ||
|
||
def formula(tax_unit, period, parameters): | ||
p = parameters(period).gov.contrib.states.mt.ctc.income_limit | ||
agi = tax_unit("adjusted_gross_income", period) | ||
agi_eligible = agi <= p.agi | ||
# CTC limited to filers with investment income below a certain threshold | ||
investment_income_eligible = ( | ||
tax_unit("eitc_relevant_investment_income", period) | ||
< p.investment | ||
) | ||
|
||
earned_income = tax_unit("tax_unit_earned_income", period) | ||
receives_earned_income = earned_income > 0 | ||
|
||
return ( | ||
agi_eligible | ||
& investment_income_eligible | ||
& receives_earned_income | ||
) | ||
|
||
def modify_parameters(parameters): | ||
parameters.gov.states.mt.tax.income.credits.refundable.update( | ||
start=instant("2023-01-01"), | ||
stop=instant("2031-12-31"), | ||
value=["mt_ctc", "mt_eitc"], | ||
) | ||
return parameters | ||
|
||
class reform(Reform): | ||
def apply(self): | ||
self.update_variable(mt_ctc) | ||
self.update_variable(mt_ctc_eligible) | ||
self.modify_parameters(modify_parameters) | ||
|
||
return reform | ||
|
||
|
||
def create_mt_ctc_reform(parameters, period, bypass: bool = False): | ||
if bypass: | ||
return create_mt_ctc() | ||
|
||
p = parameters.gov.contrib.states.mt.ctc | ||
|
||
reform_active = False | ||
current_period = period_(period) | ||
|
||
for i in range(5): | ||
if p(current_period).in_effect: | ||
reform_active = True | ||
break | ||
current_period = current_period.offset(1, "year") | ||
|
||
if reform_active: | ||
return create_mt_ctc() | ||
else: | ||
return None | ||
|
||
|
||
mt_ctc = create_mt_ctc_reform(None, None, bypass=True) |
78 changes: 0 additions & 78 deletions
78
policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/credits/ctc/mt_ctc.yaml
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
...engine_us/tests/policy/baseline/gov/states/mt/tax/income/credits/ctc/mt_ctc_eligible.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.