-
Notifications
You must be signed in to change notification settings - Fork 201
Add Colorado alternative minimum tax #6862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MaxGhenis
wants to merge
1
commit into
PolicyEngine:master
Choose a base branch
from
MaxGhenis:implement-co-amt-2708
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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: minor | ||
| changes: | ||
| added: | ||
| - Colorado alternative minimum tax (AMT). |
13 changes: 13 additions & 0 deletions
13
policyengine_us/parameters/gov/states/co/tax/income/amt/rate.yaml
This file contains hidden or 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: Colorado alternative minimum tax rate | ||||||
| values: | ||||||
| 2021-01-01: 0.0347 | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| metadata: | ||||||
| label: Colorado AMT rate | ||||||
| period: year | ||||||
| unit: /1 | ||||||
| reference: | ||||||
| - title: Colorado DR 0104AMT Instructions | ||||||
| href: https://tax.colorado.gov/DR0104AMT | ||||||
| - title: C.R.S. § 39-22-105 | ||||||
| href: https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-105/ | ||||||
33 changes: 33 additions & 0 deletions
33
...s/policy/baseline/gov/states/co/tax/income/amt/co_alternative_minimum_taxable_income.yaml
This file contains hidden or 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,33 @@ | ||
| # Colorado alternative minimum taxable income tests | ||
| - name: CO AMTI calculation | ||
| period: 2024 | ||
| input: | ||
| amt_income_less_exemptions: 200_000 | ||
| co_additions: 10_000 | ||
| co_subtractions: 5_000 | ||
| state_code: CO | ||
| output: | ||
| # 200,000 + 10,000 - 5,000 = 205,000 | ||
| co_alternative_minimum_taxable_income: 205_000 | ||
|
|
||
| - name: CO AMTI with no federal AMT income | ||
| period: 2024 | ||
| input: | ||
| amt_income_less_exemptions: 0 | ||
| co_additions: 10_000 | ||
| co_subtractions: 5_000 | ||
| state_code: CO | ||
| output: | ||
| # 0 + 10,000 - 5,000 = 5,000 | ||
| co_alternative_minimum_taxable_income: 5_000 | ||
|
|
||
| - name: CO AMTI cannot be negative | ||
| period: 2024 | ||
| input: | ||
| amt_income_less_exemptions: 0 | ||
| co_additions: 0 | ||
| co_subtractions: 50_000 | ||
| state_code: CO | ||
| output: | ||
| # max(0, 0 + 0 - 50,000) = 0 | ||
| co_alternative_minimum_taxable_income: 0 |
18 changes: 18 additions & 0 deletions
18
policyengine_us/tests/policy/baseline/gov/states/co/tax/income/amt/co_amt.yaml
This file contains hidden or 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,18 @@ | ||
| # Colorado Alternative Minimum Tax tests | ||
| - name: No AMT when normal tax exceeds tentative minimum tax | ||
| period: 2024 | ||
| input: | ||
| co_tentative_minimum_tax: 5_000 | ||
| co_income_tax_before_non_refundable_credits: 10_000 | ||
| state_code: CO | ||
| output: | ||
| co_amt: 0 | ||
|
|
||
| - name: AMT when tentative minimum tax exceeds normal tax | ||
| period: 2024 | ||
| input: | ||
| co_tentative_minimum_tax: 15_000 | ||
| co_income_tax_before_non_refundable_credits: 10_000 | ||
| state_code: CO | ||
| output: | ||
| co_amt: 5_000 |
9 changes: 9 additions & 0 deletions
9
...ngine_us/tests/policy/baseline/gov/states/co/tax/income/amt/co_tentative_minimum_tax.yaml
This file contains hidden or 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,9 @@ | ||
| # Colorado tentative minimum tax tests | ||
| - name: Tentative minimum tax calculation | ||
| period: 2024 | ||
| input: | ||
| co_alternative_minimum_taxable_income: 100_000 | ||
| state_code: CO | ||
| output: | ||
| # 100,000 * 0.0347 = 3,470 | ||
| co_tentative_minimum_tax: 3_470 |
32 changes: 32 additions & 0 deletions
32
...engine_us/variables/gov/states/co/tax/income/amt/co_alternative_minimum_taxable_income.py
This file contains hidden or 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,32 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class co_alternative_minimum_taxable_income(Variable): | ||
| value_type = float | ||
| entity = TaxUnit | ||
| label = "Colorado alternative minimum taxable income" | ||
| unit = USD | ||
| definition_period = YEAR | ||
| defined_for = StateCode.CO | ||
| reference = [ | ||
| "https://tax.colorado.gov/DR0104AMT", | ||
| "https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-105/", | ||
| ] | ||
|
|
||
| def formula(tax_unit, period, parameters): | ||
| # DR 0104AMT calculation: | ||
| # Line 1: Federal Form 6251 line 6 (federal AMTI less exemption) | ||
| federal_amt_income_less_exemptions = tax_unit( | ||
| "amt_income_less_exemptions", period | ||
| ) | ||
| # Line 2: Colorado additions (from DR 0104, lines 3-8) | ||
| co_additions = tax_unit("co_additions", period) | ||
| # Line 4: Colorado subtractions (excluding state income tax refund) | ||
| co_subtractions = tax_unit("co_subtractions", period) | ||
| # Line 5: Colorado AMTI | ||
| return max_( | ||
| 0, | ||
| federal_amt_income_less_exemptions | ||
| + co_additions | ||
| - co_subtractions, | ||
| ) |
23 changes: 23 additions & 0 deletions
23
policyengine_us/variables/gov/states/co/tax/income/amt/co_amt.py
This file contains hidden or 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,23 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class co_amt(Variable): | ||
| value_type = float | ||
| entity = TaxUnit | ||
| label = "Colorado alternative minimum tax" | ||
| unit = USD | ||
| definition_period = YEAR | ||
| defined_for = StateCode.CO | ||
| reference = [ | ||
| "https://tax.colorado.gov/DR0104AMT", | ||
| "https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-105/", | ||
| ] | ||
|
|
||
| def formula(tax_unit, period, parameters): | ||
| tentative_minimum_tax = tax_unit("co_tentative_minimum_tax", period) | ||
| # Normal tax before non-refundable credits | ||
| normal_tax = tax_unit( | ||
| "co_income_tax_before_non_refundable_credits", period | ||
| ) | ||
| # AMT is the excess of tentative minimum tax over normal tax | ||
| return max_(0, tentative_minimum_tax - normal_tax) |
20 changes: 20 additions & 0 deletions
20
policyengine_us/variables/gov/states/co/tax/income/amt/co_tentative_minimum_tax.py
This file contains hidden or 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,20 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class co_tentative_minimum_tax(Variable): | ||
| value_type = float | ||
| entity = TaxUnit | ||
| label = "Colorado tentative minimum tax" | ||
| unit = USD | ||
| definition_period = YEAR | ||
| defined_for = StateCode.CO | ||
| reference = [ | ||
| "https://tax.colorado.gov/DR0104AMT", | ||
| "https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-105/", | ||
| ] | ||
|
|
||
| def formula(tax_unit, period, parameters): | ||
| co_amti = tax_unit("co_alternative_minimum_taxable_income", period) | ||
| p = parameters(period).gov.states.co.tax.income.amt | ||
| # DR 0104AMT Line 6: multiply by 3.47% | ||
| return co_amti * p.rate |
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
active voice