Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Utah's military retirement credit no longer goes unclaimed when the filer has neither a retirement credit nor a Social Security benefits credit; the retirement-credit choice now weighs the military credit alongside the Social Security credit; the credit uses the income tax rate, as 59-10-1043 requires (4.45% in 2026), starting in 2021; and the credit now reduces Utah tax for 2021 through 2023, which 2021 S.B. 11 covers but the nonrefundable credit list left out.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the `gov.states.ut.tax.income.credits.military_retirement.rate` parameter; Utah's military retirement credit now reads `gov.states.ut.tax.income.rate`, the 59-10-104(2) percentage that 59-10-1043 names. The two parameters held the same values for 2021 through 2025.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
description: Utah allows the military retirement credit when this is true.
values:
0000-01-01: false
# 2021 S.B. 11, Section 4: "This bill has retrospective operation for a
# taxable year beginning on or after January 1, 2021." The bill enacted the
# credit as 59-10-1042; the Utah Code carries it as 59-10-1043.
2021-01-01: true
metadata:
unit: bool
period: year
label: Utah military retirement credit in effect
reference:
- title: Utah Code §59-10-1043
href: https://le.utah.gov/xcode/Title59/Chapter10/59-10-S1043.html
- title: 2021 Utah S.B. 11, Military Retirement Income Tax Amendments, Section 4 (retrospective operation)
href: https://le.utah.gov/~2021/bills/sbillenr/SB0011.htm
- title: Utah Military Retirement Credit
href: https://incometax.utah.gov/credits/military-retirement
- title: 2021 Utah TC-40 Instructions, Military Retirement Credit Worksheet
href: https://files.tax.utah.gov/tax/forms/2021/tc-40inst.pdf#page=22
- title: 2025 Utah TC-40 Instructions, Military Retirement Credit (code AJ)
href: https://files.tax.utah.gov/tax/forms/2025/tc-40inst.pdf#page=23

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ values:
- ut_retirement_credit
- ut_ss_benefits_credit
- ut_at_home_parent_credit
# 2021 S.B. 11, Section 4: the military retirement credit (TC-40A Part 3,
# code AJ) applies to taxable years beginning on or after January 1, 2021.
- ut_military_retirement_credit

2022-01-01:
- ut_eitc
- ut_retirement_credit
- ut_ss_benefits_credit
- ut_at_home_parent_credit
- ut_military_retirement_credit
- ut_529_plan_credit

2024-01-01:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ def test_dependents_retirement_income_never_reduces_state_income_tax(year):
assert (unit_has_dependent_income & filer_social_security).any()
assert (unit_has_dependent_income & filer_aged_73).any()
assert (unit_has_dependent_income & elderly_dependent).any()
# Utah's military retirement credit is open only when the retirement
# credit is not claimed, which needs Social Security worth more than the
# age-gated retirement credit.
# Utah's military retirement credit is open only when the filer does not
# claim the retirement credit: when that credit is worth nothing, or less
# than the Social Security and military retirement credits together.
dependent_military_pay = np.tile(
[any(d["income"]["military_retirement_pay"] > 0 for d in u["dependents"])
for u in units],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,45 @@
state_code: UT
output:
ut_military_retirement_credit: 1350

- name: UT military retirement credit - retiree too young for the retirement credit gets the military credit
period: 2025
input:
people:
person1:
age: 45
military_retirement_pay: 30_000
tax_units:
tax_unit:
members: [person1]
ut_income_tax_before_non_refundable_credits: 1_000_000
households:
household:
members: [person1]
state_code: UT
output:
ut_claims_retirement_credit: false
ut_military_retirement_credit_eligible: true
ut_military_retirement_credit: 1_350

- name: UT military retirement credit - older retiree with little military pay takes the retirement credit instead
period: 2025
input:
people:
person1:
age: 76
military_retirement_pay: 4_000
tax_units:
tax_unit:
members: [person1]
ut_income_tax_before_non_refundable_credits: 1_000_000
households:
household:
members: [person1]
state_code: UT
output:
ut_retirement_credit_max: 450
ut_military_retirement_credit_max: 180
ut_claims_retirement_credit: true
ut_military_retirement_credit_eligible: false
ut_military_retirement_credit: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
- name: UT military retirement credit maximum - 4.5% of military retirement pay in 2025
period: 2025
input:
people:
person1:
military_retirement_pay: 30_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: UT
output:
ut_military_retirement_credit_max: 1_350

- name: UT military retirement credit maximum - survivor benefits count as military retirement pay
period: 2025
input:
people:
person1:
military_retirement_pay_survivors: 10_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: UT
output:
ut_military_retirement_credit_max: 450

- name: UT military retirement credit maximum - none before the credit took effect in 2021
period: 2020
input:
people:
person1:
military_retirement_pay: 30_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: UT
output:
ut_military_retirement_credit_max: 0

- name: UT military retirement credit maximum - follows the 4.45% income tax rate in 2026
period: 2026
input:
people:
person1:
military_retirement_pay: 30_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: UT
output:
ut_military_retirement_credit_max: 1_335
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,41 @@
output:
ut_claims_retirement_credit: true

- name: UT claims retirement credit unit test 4
- name: UT claims retirement credit unit test 4 - a retirement credit worth nothing is never claimed
period: 2022
input:
ut_retirement_credit_max: 0
ut_ss_benefits_credit_max: 0
state_code: UT
output:
ut_claims_retirement_credit: false

- name: UT claims retirement credit - military credit alone outweighs the retirement credit
period: 2025
input:
ut_retirement_credit_max: 450
ut_ss_benefits_credit_max: 0
ut_military_retirement_credit_max: 1_350
state_code: UT
output:
ut_claims_retirement_credit: false

- name: UT claims retirement credit - Social Security and military credits combine against the retirement credit
period: 2025
input:
ut_retirement_credit_max: 450
ut_ss_benefits_credit_max: 300
ut_military_retirement_credit_max: 200
state_code: UT
output:
ut_claims_retirement_credit: false

- name: UT claims retirement credit - retirement credit outweighs both alternatives combined
period: 2025
input:
ut_retirement_credit_max: 450
ut_ss_benefits_credit_max: 100
ut_military_retirement_credit_max: 225
state_code: UT
output:
ut_claims_retirement_credit: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# The military retirement credit (Utah Code 59-10-1043, TC-40A Part 3 code AJ)
# has reduced Utah tax since tax year 2021: 2021 S.B. 11, Section 4, gives the
# credit retrospective operation for taxable years beginning on or after
# January 1, 2021, and the 2021, 2022 and 2023 TC-40 instructions each list it
# among the line 24 apportionable nonrefundable credits (page 11) with a
# worksheet at that year's rate (2021 page 22, 2022 page 22, 2023 page 23).
#
# Each expected amount below follows the TC-40 for its year:
# line 10 tax = Utah taxable income x the rate
# line 16 initial taxpayer credit = 6% x the federal standard deduction
# line 19 phase-out = 1.3% x (Utah taxable income - the line 17 base amount)
# line 22 tax before nonrefundable credits = line 10 - (line 16 - line 19)

- name: 2021 - a 75-year-old's military retirement credit, limited to tax, brings Utah tax to zero
period: 2021
absolute_error_margin: 0.01
input:
people:
person1:
age: 75
military_retirement_pay: 30_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: UT
output:
# Born in 1946: 450 - 2.5% x (30,000 - 25,000) = 325.
ut_retirement_credit_max: 325
# 2021 worksheet: 30,000 x 0.0495 = 1,485, more than 325.
ut_military_retirement_credit_max: 1_485
ut_claims_retirement_credit: false
# Line 10: 30,000 x 4.95% = 1,485.
# Line 16: 6% x (12,550 + 1,700 for age 65 or over) = 855.
# Line 19: 1.3% x (30,000 - 15,095) = 193.765.
# Line 22: 1,485 - (855 - 193.765) = 823.765.
ut_income_tax_before_non_refundable_credits: 823.765
# The 1,485 credit cannot exceed the tax.
ut_military_retirement_credit: 823.765
ut_non_refundable_credits: 823.765
ut_income_tax: 0

- name: 2022 - a working couple's military retirement credit comes off Utah tax in full
period: 2022
absolute_error_margin: 0.01
input:
people:
person1:
age: 45
military_retirement_pay: 30_000
employment_income: 60_000
person2:
age: 43
tax_units:
tax_unit:
members: [person1, person2]
marital_units:
marital_unit:
members: [person1, person2]
households:
household:
members: [person1, person2]
state_code: UT
output:
# Both spouses were born after 1952.
ut_retirement_credit_max: 0
# 2022 worksheet: 30,000 x 0.0485 = 1,455.
ut_military_retirement_credit_max: 1_455
ut_claims_retirement_credit: false
# Line 10: 90,000 x 4.85% = 4,365.
# Line 16: 6% x 25,900 = 1,554.
# Line 19: 1.3% x (90,000 - 31,096) = 765.752.
# Line 22: 4,365 - (1,554 - 765.752) = 3,576.752.
ut_income_tax_before_non_refundable_credits: 3_576.752
ut_military_retirement_credit: 1_455
ut_non_refundable_credits: 1_455
# 3,576.752 - 1,455 = 2,121.752.
ut_income_tax: 2_121.752

- name: 2023 - a 75-year-old's military retirement credit, limited to tax, brings Utah tax to zero
period: 2023
absolute_error_margin: 0.01
input:
people:
person1:
age: 75
military_retirement_pay: 30_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: UT
output:
# Born in 1948: 450 - 2.5% x (30,000 - 25,000) = 325.
ut_retirement_credit_max: 325
# 2023 worksheet: 30,000 x 0.0465 = 1,395, more than 325.
ut_military_retirement_credit_max: 1_395
ut_claims_retirement_credit: false
# Line 10: 30,000 x 4.65% = 1,395.
# Line 16: 6% x (13,850 + 1,850 for age 65 or over) = 942.
# Line 19: 1.3% x (30,000 - 16,742) = 172.354.
# Line 22: 1,395 - (942 - 172.354) = 625.354.
ut_income_tax_before_non_refundable_credits: 625.354
# The 1,395 credit cannot exceed the tax.
ut_military_retirement_credit: 625.354
ut_non_refundable_credits: 625.354
ut_income_tax: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from policyengine_us.model_api import *


class ut_military_retirement_credit_max(Variable):
value_type = float
entity = TaxUnit
label = "Utah military retirement credit maximum amount"
unit = USD
definition_period = YEAR
reference = "https://le.utah.gov/xcode/Title59/Chapter10/59-10-S1043.html"
defined_for = StateCode.UT

def formula(tax_unit, period, parameters):
# 59-10-1043(2)(b): only the pay included in adjusted gross income on
# the claimant's federal return, which excludes dependents' income;
# dependents report it on their own return.
# Limitation: a survivor of a member who died on active duty or in
# training claims the military survivor benefits credit (59-10-1036,
# TC-40A code AA) for those benefits, not this credit (code AJ). No
# input separates those survivors, so their benefits count here. Both
# credits apply the 59-10-104(2) percentage to the benefits, but
# 59-10-1036 carries no bar on claiming the retirement credit.
military_retirement_pay = tax_unit_non_dep_add(
tax_unit,
period,
["military_retirement_income"],
)
# 59-10-1043(2)(a): the percentage listed in 59-10-104(2), the
# income tax rate.
p = parameters(period).gov.states.ut.tax.income
in_effect = p.credits.military_retirement.in_effect
return in_effect * military_retirement_pay * p.rate
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,4 @@ class ut_military_retirement_credit_potential(Variable):
reference = "https://le.utah.gov/xcode/Title59/Chapter10/59-10-S1043.html"
defined_for = "ut_military_retirement_credit_eligible"

def formula(tax_unit, period, parameters):
# 59-10-1043(2)(b): only the pay included in adjusted gross income on
# the claimant's federal return, which excludes dependents' income;
# dependents report it on their own return.
military_retirement_pay = tax_unit_non_dep_add(
tax_unit,
period,
["military_retirement_income"],
)

p = parameters(period).gov.states.ut.tax.income.credits.military_retirement
return military_retirement_pay * p.rate
adds = ["ut_military_retirement_credit_max"]
Loading
Loading