Skip to content
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

Nebraska Military Retirement Benefit Exclusion 2022 #5043

Merged
merged 13 commits into from
Dec 12, 2024
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- 2022 Nebraska military retirement benefit exclusion.
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description: Fraction of military retirement benefits allowed as NE AGI subtraction.
pxu12 marked this conversation as resolved.
Show resolved Hide resolved
values:
2022-01-01: 1
pxu12 marked this conversation as resolved.
Show resolved Hide resolved

metadata:
label: fraction of military retirement benefits allowed as NE AGI subtraction
pxu12 marked this conversation as resolved.
Show resolved Hide resolved
unit: /1
period: year
reference:
pxu12 marked this conversation as resolved.
Show resolved Hide resolved
- title: 2022 NE income tax form and instruction booklet
href: https://revenue.nebraska.gov/sites/revenue.nebraska.gov/files/doc/2022_Ne_Individual_Income_Tax_Booklet_8-307-2022_final_8.pdf#page=3
- title: Legislative Bill 387
pxu12 marked this conversation as resolved.
Show resolved Hide resolved
pxu12 marked this conversation as resolved.
Show resolved Hide resolved
href: https://revenue.nebraska.gov/sites/revenue.nebraska.gov/files/doc/info/legislation/2021/LB387.pdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- name: Test 1, less than agi, for 2022
absolute_error_margin: 0.01
period: 2022
input:
adjusted_gross_income: 200_000
military_retirement_pay: 30_000
state_code: NE
output:
ne_military_retirement_subtraction: 30_000
pxu12 marked this conversation as resolved.
Show resolved Hide resolved

- name: Test 2, more than agi, for 2022
absolute_error_margin: 0.01
period: 2022
input:
adjusted_gross_income: 20_000
military_retirement_pay: 30_000
state_code: NE
output:
ne_military_retirement_subtraction: 20_000
pxu12 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from policyengine_us.model_api import *


class ne_military_retirement_subtraction(Variable):
pxu12 marked this conversation as resolved.
Show resolved Hide resolved
value_type = float
entity = TaxUnit
label = "Nebraska military retirement subtraction"
unit = USD
definition_period = YEAR
defined_for = StateCode.NE

def formula(tax_unit, period, parameters):
fagi = tax_unit("adjusted_gross_income", period)
p = parameters(
period
).gov.states.ne.tax.income.agi.subtractions.military_retirement
military_retirement_benefits = add(
tax_unit, period, ["military_retirement_pay"]
)
return min_(military_retirement_benefits * p.fraction, fagi)
Loading