Skip to content

Commit

Permalink
Ohio Joint Filing Credit
Browse files Browse the repository at this point in the history
  • Loading branch information
mylittlebecca committed Sep 26, 2023
1 parent c84b163 commit 77d0312
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 72 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Ohio qualifies the joint filing credit for joint filers both with adjusted gross income of at least this amount.
description: Ohio qualifies the joint filing credit for head and spouse each with Ohio adjusted gross income above this amount.
values:
2021-01-01: 500

Expand All @@ -11,5 +11,5 @@ metadata:
href: https://tax.ohio.gov/static/forms/ohio_individual/individual/2021/pit-it1040-booklet.pdf#page=20
- title: 2022 Ohio IT 1040 Individual Income Tax Return Form Instructions Line 12
href: https://tax.ohio.gov/static/forms/ohio_individual/individual/2022/it1040-sd100-instruction-booklet.pdf#page=20
- title: Ohio Revised Code - Section 5747.05 Tax credits. (E)
- title: Ohio Revised Code - Section 5747.05 Tax credits. (E) (1)
href: https://codes.ohio.gov/ohio-revised-code/section-5747.05
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Ohio limits the joint filing credit at this amount.
description: Ohio limits the joint filing credit to this maximum amount.
values:
2021-01-01: 650

Expand All @@ -11,5 +11,5 @@ metadata:
href: https://tax.ohio.gov/static/forms/ohio_individual/individual/2021/pit-it1040-booklet.pdf#page=20
- title: 2022 Ohio IT 1040 Individual Income Tax Return Form Instructions Line 12
href: https://tax.ohio.gov/static/forms/ohio_individual/individual/2022/it1040-sd100-instruction-booklet.pdf#page=20
- title: Ohio Revised Code - Section 5747.05 Tax credits. (E)
- title: Ohio Revised Code - Section 5747.05 Tax credits. (E) (1)
href: https://codes.ohio.gov/ohio-revised-code/section-5747.05
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
description: Ohio provides the joint filing credit for this fraction of redunfable credit, based on Ohio modified adjuested gross income less exemptions.
description: Ohio provides a joint filing credit for this fraction corresponds with the taxpayer's modified adjusted gross income, less exemptions for the taxable year, of the Tax less credits.
metadata:
type: single_amount
threshold_unit: currency-USD
amount_unit: /1
label: Ohio joint filing credit threshold
label: Ohio joint filing credit income threshold
reference:
- title: 2021 Ohio IT 1040 Individual Income Tax Return Form Instructions Line 12
href: https://tax.ohio.gov/static/forms/ohio_individual/individual/2021/pit-it1040-booklet.pdf#page=20
- title: 2022 Ohio IT 1040 Individual Income Tax Return Form Instructions Line 12
href: https://tax.ohio.gov/static/forms/ohio_individual/individual/2022/it1040-sd100-instruction-booklet.pdf#page=20
- title: Ohio Revised Code - Section 5747.05 Tax credits. (E)
- title: Ohio Revised Code - Section 5747.05 Tax credits. (E)
href: https://codes.ohio.gov/ohio-revised-code/section-5747.05

brackets:
- threshold:
2021-01-01: 0
amount:
2021-01-01: 0.2
- threshold:
2021-01-01: 25_000
amount:
2021-01-01: 0.15
- threshold:
2021-01-01: 50_000
amount:
2021-01-01: 0.10
- threshold:
2021-01-01: 75_000
amount:
2021-01-01: 0.05
- threshild:
2021-01-01: 0
amount:
2021-01-01: 0.2
- threshild:
2021-01-01: 25_000
amount:
2021-01-01: 0.15
- threshild:
2021-01-01: 50_000
amount:
2021-01-01: 0.1
- threshild:
2021-01-01: 75_000
amount:
2021-01-01: 0.05


Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: Eligible for joint filing credit
absolute_error_margin: 0.01
period: 2021
input:
state_code: OH
oh_joint_filing_credit: true
oh_agi: 47_000
oh_income_tax_exempt: 10_000
oh_income_tax_before_refundable_credits: 4_000
output:
oh_joint_filing_credit: 600

- name: Eligible for maximum joint filing credit
absolute_error_margin: 0.01
period: 2021
input:
state_code: OH
oh_joint_filing_credit: true
oh_agi: 47_000
oh_income_tax_exempt: 10_000
oh_income_tax_before_refundable_credits: 6_000
output:
oh_joint_filing_credit: 650

- name: Not eligible for joint filing credit
absolute_error_margin: 0.01
period: 2021
input:
state_code: OH
oh_joint_filing_credit: false
oh_agi: 47_000
oh_income_tax_exempt: 10_000
oh_income_tax_before_refundable_credits: 4_000
output:
oh_joint_filing_credit: 0
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
tax_unit:
members: [person1, person2]
filing_status: JOINT
oh_agi: 47_000
oh_income_tax_exempt: 10_000
oh_income_tax_before_refundable_credits: 6_000
households:
household:
state_code: OH
output:
oh_joint_filing_credit: 0
oh_joint_filing_credit_eligible: false

- name: Status not eligible for joint filing credit
absolute_error_margin: 0.01
Expand All @@ -34,11 +34,11 @@
tax_unit:
members: [person1, person2]
filing_status: HEAD_OF_HOUSEHOLD
oh_agi: 47_000
oh_income_tax_exempt: 10_000
oh_income_tax_before_refundable_credits: 6_000
households:
household:
state_code: OH
output:
oh_joint_filing_credit: 0
oh_joint_filing_credit_eligible: false

- name: Eligible for joint filing credit
absolute_error_margin: 0.01
Expand All @@ -55,29 +55,8 @@
tax_unit:
members: [person1, person2]
filing_status: JOINT
oh_agi: 47_000
oh_income_tax_exempt: 10_000
oh_income_tax_before_refundable_credits: 4_000
households:
household:
state_code: OH
output:
oh_joint_filing_credit: 600

- name: Eligible for maximum joint filing credit
absolute_error_margin: 0.01
period: 2021
input:
people:
person1:
is_tax_unit_head: true
employment_income: 600
person2:
is_tax_unit_spouse: true
employment_income: 700
tax_units:
tax_unit:
members: [person1, person2]
filing_status: JOINT
oh_agi: 47_000
oh_income_tax_exempt: 10_000
oh_income_tax_before_refundable_credits: 6_000
output:
oh_joint_filing_credit: 650
oh_joint_filing_credit_eligible: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from policyengine_us.model_api import *


class oh_joint_filing_credit(Variable):
value_type = float
entity = TaxUnit
label = "Ohio Joint Filing Credit"
unit = USD
definition_period = YEAR
reference = "https://codes.ohio.gov/ohio-revised-code/section-5747.05"
defined_for = "oh_joint_filing_credit_eligible"

def formula(tax_unit, period, parameters):
credit = tax_unit("oh_income_tax_before_refundable_credits", period)
p = parameters(
period
).gov.states.oh.tax.income.credits.joint_filing_credit
magi_less_exepmtion = tax_unit("oh_agi", period) - tax_unit(
"oh_income_tax_exempt", period
)
percentage = p.rate.calc(magi_less_exepmtion)
return min_(credit * percentage, p.max_amount)
Original file line number Diff line number Diff line change
@@ -1,42 +1,31 @@
from policyengine_us.model_api import *


class oh_joint_filing_credit(Variable):
class oh_joint_filing_credit_eligible(Variable):
value_type = float
entity = TaxUnit
label = "Ohio Joint Filing Credit"
unit = USD
label = "Eligible for Ohio Joint Filing Credit"
definition_period = YEAR
reference = "https://codes.ohio.gov/ohio-revised-code/section-5747.05"
defined_for = StateCode.OH

def formula(tax_unit, period, parameters):
filing_status = tax_unit("filing_status", period)
credit = tax_unit("oh_income_tax_before_refundable_credits", period)
person = tax_unit.members
is_head = person("is_tax_unit_head", period)
is_spouse = person("is_tax_unit_spouse", period)
p = parameters(
period
).gov.states.oh.tax.income.credits.joint_filing_credit
income = person("employment_income", period)
print(income)
# income_condition = income >= p.income_base

head_income = tax_unit.sum(is_head * income)

spouse_income = tax_unit.sum(is_spouse * income)

qualify_income = (head_income >= p.income_base) & (
spouse_income >= p.income_base
)
print(qualify_income)
qualify_status = filing_status == filing_status.possible_values.JOINT
magi_less_exepmtion = tax_unit("oh_agi", period) - tax_unit(
"oh_income_tax_exempt", period
)
percentage = where(
qualify_income & qualify_status,
p.rate.calc(magi_less_exepmtion),
0,
)
return min_(credit * percentage, p.max_amount)

return qualify_income & qualify_status

0 comments on commit 77d0312

Please sign in to comment.