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

South Carolina Tuition Tax Credits #2634

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
0141069
South Carolina Tuition tax credit
hua7450 Jul 18, 2023
57c10f2
write code on sc tuition tax credits
hua7450 Jul 18, 2023
11d41cd
South Carolina Tuition tax credit
hua7450 Jul 20, 2023
961aadf
pull upstream master
hua7450 Jul 20, 2023
5248716
minor fix
hua7450 Jul 20, 2023
356ad4e
South Carolina Tuition tax credit
hua7450 Jul 27, 2023
d49fdac
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
hua7450 Jul 27, 2023
135fd5b
South Carolina Tuition tax credit
hua7450 Jul 27, 2023
5107699
adjust references
hua7450 Aug 2, 2023
51e5f5a
update version
hua7450 Aug 2, 2023
f03164a
South Carolina Tuition tax credit
hua7450 Aug 2, 2023
c3aaa1f
Update policyengine_us/parameters/gov/states/sc/tax/income/credits/co…
hua7450 Aug 8, 2023
e0c09c1
update version
hua7450 Aug 8, 2023
a399e74
update version
hua7450 Aug 10, 2023
e0beb73
person level
PavelMakarchuk Aug 30, 2023
60d166c
format
PavelMakarchuk Aug 30, 2023
b43bdba
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
PavelMakarchuk Aug 30, 2023
c68bb91
format
PavelMakarchuk Aug 30, 2023
262d655
changelog
PavelMakarchuk Aug 30, 2023
ce8454e
add sc_tuition _credit_eligible
hua7450 Aug 31, 2023
6dd65c5
add sc_semesters_attended variable, fix code
hua7450 Sep 7, 2023
68eff3a
update version
hua7450 Sep 7, 2023
4c9f747
South Carolina Tuition tax credit
hua7450 Sep 7, 2023
6e608da
minor change on code
hua7450 Sep 11, 2023
7c38417
update version
hua7450 Sep 11, 2023
cec07d2
make format
hua7450 Sep 11, 2023
a777a9a
make format
hua7450 Sep 13, 2023
a578eaa
update version
hua7450 Sep 13, 2023
81ed491
Update policyengine_us/variables/gov/states/sc/tax/income/credits/col…
PavelMakarchuk Sep 13, 2023
8590d0a
Update policyengine_us/variables/gov/states/sc/tax/income/credits/col…
PavelMakarchuk Sep 13, 2023
37f3029
Update policyengine_us/variables/gov/states/sc/tax/income/credits/col…
PavelMakarchuk Sep 13, 2023
128e7fb
add test yaml for sc_tuition_credit_eligible.py,
hua7450 Sep 13, 2023
9435e50
fix code
hua7450 Sep 19, 2023
543f717
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
hua7450 Sep 19, 2023
8c1554e
South Carolina Tuition tax credit
hua7450 Sep 20, 2023
36149ee
minor change
hua7450 Sep 20, 2023
119cb38
fix code and run make format
hua7450 Oct 2, 2023
48ced4e
update version
hua7450 Oct 2, 2023
18ce2c5
update version
hua7450 Nov 5, 2023
6ee5389
code fix
hua7450 Nov 15, 2023
7f499e3
update version
hua7450 Nov 15, 2023
0139004
fix the scale parameter
hua7450 Nov 16, 2023
ceebd23
update version
hua7450 Nov 16, 2023
e1a6d6c
update version
hua7450 Nov 30, 2023
8531472
change variable name to consist
hua7450 Nov 30, 2023
2b6f355
make format
hua7450 Nov 30, 2023
1b31968
South Carolina Tuition tax credit
hua7450 Feb 18, 2024
92e48fe
update version
hua7450 Feb 18, 2024
3d28986
South Carolina Tuition tax credit
hua7450 Feb 18, 2024
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
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:
- South Carolina Tuition Tax Credit.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description: South Carolina requires these annual credit hours to qualify for the tuition tax credit.
values:
2021-01-01: 30

metadata:
unit: hour
period: year
label: South Carolina tuition tax credit annual credit hour requirement
reference:
- title: SC I-319 2021
href: https://dor.sc.gov/forms-site/Forms/I319_2021.pdf#page=2
- title: South Carolina Legal Code | SECTION 12-6-3385 (B)(3)(b)
href: https://www.scstatehouse.gov/code/t12c006.php
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
- title: SC I-319 2022
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
href: https://dor.sc.gov/forms-site/Forms/I319_2022.pdf#page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description: South Carolina limits the tuition tax credit to this amount.
values:
2021-01-01: 1_500

metadata:
unit: currency-USD
period: year
label: South Carolina tuition tax credit max amount
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: SC I-319 2021
href: https://dor.sc.gov/forms-site/Forms/I319_2021.pdf#page=2
- title: South Carolina Legal Code | Section 12-6-3385 (A)(1)(a)
href: https://www.scstatehouse.gov/code/t12c006.php
- title: SC I-319 2022
href: https://dor.sc.gov/forms-site/Forms/I319_2022.pdf#page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description: South Carolina limits the qualifying tuition of 4-Year Independent Institutions per school-year to this amount.
values:
2021-01-01: 12_268

metadata:
unit: currency-USD
period: year
label: South Carolina tuition tax credit eligible tuition max amount
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: SC I-319 2021
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
href: https://dor.sc.gov/forms-site/Forms/I319_2021.pdf#page=2
# Not in Legal code but in tax forms
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
- title: SC I-319 2022
href: https://dor.sc.gov/forms-site/Forms/I319_2022.pdf#page=2
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description: South Carolina credits this percentage of college tuition under the tuition tax credit.
values:
2021-01-01: 0.5

metadata:
unit: /1
period: year
label: South Carolina college tuition credit rate
reference:
- title: SC I-319 2021
href: https://dor.sc.gov/forms-site/Forms/I319_2021.pdf#page=2
- title: South Carolina Legal Code | Section 12-6-3385 (A)(1)(a)
href: https://www.scstatehouse.gov/code/t12c006.php
- title: SC I-319 2022
href: https://dor.sc.gov/forms-site/Forms/I319_2022.pdf#page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
- name: $6k tuition, 15 semester hours
period: 2022
input:
state_code: SC
total_college_hours: 15
qualified_tuition_expenses: 6_000
output:
sc_tuition_credit: 1500
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
# 12,268*15/30 = 6,134 6,000*0.5 = 3,000

- name: $2k tuition, 12 semester hours
period: 2022
input:
state_code: SC
total_college_hours: 30
qualified_tuition_expenses: 2_000
output:
sc_tuition_credit: 1_000
# 12,268*12/30 = 4,907 2,000*0.5 = 1000

- name: $15k tuition, 30 semester hours
period: 2022
input:
state_code: SC
total_college_hours: 30
qualified_tuition_expenses: 15_000
output:
sc_tuition_credit: 1500
# 12,268*30/30 = 12,268 12,268*0.5 = 6,134
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from policyengine_us.model_api import *


class sc_tuition_credit(Variable):
value_type = float
entity = Person
label = "South Carolina Tuition Credit"
defined_for = StateCode.SC
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
unit = USD
definition_period = YEAR
reference: "https://dor.sc.gov/forms-site/Forms/I319_2021.pdf#page=2"

def formula(person, period, parameters):
p = parameters(period).gov.states.sc.tax.income.credits.college_tuition

# line 1
total_hours = person("total_college_hours", period)
# line 2
qualified_tuition_expenses = person(
"qualified_tuition_expenses", period
)
# line 3
annual_hour_requirement = p.annual_hour_requirement
tuition_limit = (
p.max_amount.tuition * total_hours / annual_hour_requirement
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
)
# line 7 (lesser of line 2 or 3 and multiply by rate)
uncapped_credit = (
min_(qualified_tuition_expenses, tuition_limit) * p.rate
)

# compare line 7 with credit max amount, take lesser amount
return min_(uncapped_credit, p.max_amount.credit)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from policyengine_us.model_api import *


class total_college_hours(Variable):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may have to create a sc_semesters_hours, according to the tax form instruction,
image
but the money you spend on summer hours could count into the credit.
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summer credit hours do not count toward the semester requirement for credit hours.
You may claim tuition paid for non-semester credit hours only if the student is seeking a degree from the school offering the course and if the student graduated from high school before the course began. A student seeking a degree at one college or university may transfer to another college or university in order to seek a degree and qualify at both schools.
The images were broken, here is the link.

value_type = float
entity = Person
label = "Total annual hours of college attended"
unit = "hour"
definition_period = YEAR