-
Notifications
You must be signed in to change notification settings - Fork 182
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
base: master
Are you sure you want to change the base?
Conversation
Fixes PolicyEngine#2633 Co-authored-by: Pinyan <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2634 +/- ##
=======================================
Coverage 99.11% 99.11%
=======================================
Files 2296 2299 +3
Lines 33349 33387 +38
Branches 165 165
=======================================
+ Hits 33053 33091 +38
Misses 263 263
Partials 33 33 ☔ View full report in Codecov by Sentry. |
..._us/parameters/gov/states/sc/tax/income/credits/college_tuition/annual_hour_requirement.yaml
Outdated
Show resolved
Hide resolved
..._us/parameters/gov/states/sc/tax/income/credits/college_tuition/annual_hour_requirement.yaml
Outdated
Show resolved
Hide resolved
...engine_us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_qualified_tuition.py
Outdated
Show resolved
Hide resolved
policyengine_us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_total_hours.py
Outdated
Show resolved
Hide resolved
policyengine_us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_total_hours.py
Outdated
Show resolved
Hide resolved
..._us/parameters/gov/states/sc/tax/income/credits/college_tuition/annual_hour_requirement.yaml
Outdated
Show resolved
Hide resolved
..._us/parameters/gov/states/sc/tax/income/credits/college_tuition/annual_hour_requirement.yaml
Outdated
Show resolved
Hide resolved
..._us/parameters/gov/states/sc/tax/income/credits/college_tuition/annual_hour_requirement.yaml
Outdated
Show resolved
Hide resolved
..._us/parameters/gov/states/sc/tax/income/credits/college_tuition/annual_hour_requirement.yaml
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/credit_limit.yaml
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/rate.yaml
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/rate.yaml
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/credit_limit.yaml
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/credit_limit.yaml
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/tuition_limit.yaml
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/tuition_limit.yaml
Outdated
Show resolved
Hide resolved
...e_us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_college_tuition_credit.py
Outdated
Show resolved
Hide resolved
...e_us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_college_tuition_credit.py
Outdated
Show resolved
Hide resolved
...e_us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_college_tuition_credit.py
Outdated
Show resolved
Hide resolved
Merge branch 'master' of https://github.com/PolicyEngine/policyengine-us into hua7450/issue2633
..._us/parameters/gov/states/sc/tax/income/credits/college_tuition/annual_hour_requirement.yaml
Outdated
Show resolved
Hide resolved
...ngine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/max_amount/tuition.yaml
Outdated
Show resolved
Hide resolved
..._us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_tuition_credit_eligible.py
Outdated
Show resolved
Hide resolved
..._us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_tuition_credit_eligible.py
Outdated
Show resolved
Hide resolved
..._us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_tuition_credit_eligible.py
Outdated
Show resolved
Hide resolved
..._us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_tuition_credit_eligible.py
Outdated
Show resolved
Hide resolved
- title: SC I-319 2021 | ||
href: https://dor.sc.gov/forms-site/Forms/I319_2021.pdf#page=2 | ||
- title: SC I-319 2022 | ||
href: https://dor.sc.gov/forms-site/Forms/I319_2022.pdf#page=2 |
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.
Where is two in the references? I see spring and fall in one part, plus summer in another
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.
It's not in the references, two is more like a default value for the maximum number of semesters a student can attend for each year.
...ngine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/max_amount/tuition.yaml
Outdated
Show resolved
Hide resolved
...ngine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/max_amount/tuition.yaml
Outdated
Show resolved
Hide resolved
Merge branch 'master' of https://github.com/PolicyEngine/policyengine-us into hua7450/issue2633
Merge branch 'master' of https://github.com/PolicyEngine/policyengine-us into hua7450/issue2633
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.
Schools on the semester system can still have three terms, including summer. Schools on the quarter system have four terms. So I think this is policy-specific.
total_college_hours = person("total_college_hours", period) | ||
semesters_attended = person("college_semesters_attended", period) | ||
required_hours = p.semester_hour_requirement * semesters_attended | ||
meets_hours_requirement = total_college_hours >= required_hours |
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.
Doesn't this imply semesters_attended > 0
?
meets_hours_requirement = total_college_hours >= required_hours | |
return total_college_hours >= required_hours |
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.
I need this to pass the test case where a student is ineligible for attending 0 semester and have 0 credit.
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.
How could they have (total_college_hours > 0) & (college_semesters_attended == 0)
? Is it that they need to have completed a semester? If so let's rename the variable to college_semesters_completed
.
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.
If a student has 0 credit hour, 0 semester attended/complete, then obviously this student is not eligible for this credit. If I use your code: return total_college_hours >= required_hours
Then required_hours = 15*0 = 0, total_college_hours = 0 which is >= 0, the function returns true. What's why I add the semester's restriction to make sure that such student is ineligible.
policyengine_us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_tuition_credit.py
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/rate.yaml
Show resolved
Hide resolved
policyengine_us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_tuition_credit.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Pinyan <[email protected]>
Merge branch 'master' of https://github.com/PolicyEngine/policyengine-us into hua7450/issue2633
Merge branch 'master' of https://github.com/PolicyEngine/policyengine-us into hua7450/issue2633
with current version
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.
Is the number 2 in the SC legal code or tax form? If not it should not be here.
total_college_hours = person("total_college_hours", period) | ||
semesters_attended = person("college_semesters_attended", period) | ||
required_hours = p.semester_hour_requirement * semesters_attended | ||
meets_hours_requirement = total_college_hours >= required_hours |
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.
How could they have (total_college_hours > 0) & (college_semesters_attended == 0)
? Is it that they need to have completed a semester? If so let's rename the variable to college_semesters_completed
.
...ngine_us/variables/gov/states/sc/tax/income/credits/college_tuition/sc_tuition_tax_credit.py
Outdated
Show resolved
Hide resolved
from policyengine_us.model_api import * | ||
|
||
|
||
class total_college_hours(Variable): |
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.
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.
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.
Merge branch 'master' of https://github.com/PolicyEngine/policyengine-us into hua7450/issue2633
🤖 Generated by Copilot at 57c10f2
Summary
✨📄✅
This pull request adds a new feature to the policy engine for the South Carolina Tuition Tax Credit, which is a state income tax credit for eligible college tuition expenses. It introduces new parameters, variables, and tests for the credit, and updates the changelog entry accordingly. The new files are located in
policyengine_us/parameters/gov/states/sc/tax/income/credits/college_tuition/
andpolicyengine_us/variables/gov/states/sc/tax/income/credits/college_tuition/
.Walkthrough