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 sales tax cut for people age 85 and older #5428

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Copy link
Collaborator

Choose a reason for hiding this comment

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

its a good start, we will need to add the general SC use / Sales tax structure as well.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- South Carolina sales and use tax, general and elderly.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: South Carolina provides a lower state sales and use tax rate for filers of this age and older.
values:
2021-01-01: 85

metadata:
unit: year
period: year
label: South Carolina sales and use tax exclusion age threshold
reference:
- title: SC REVENUE RULING 08-5
href: https://dor.sc.gov/resources-site/lawandpolicy/Advisory%20Opinions/RR08-5.pdf#page=2
shuyu7zhan marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: South Carolina excludes the following percentage of the sales and use tax for elderly filers.
shuyu7zhan marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: /1
shuyu7zhan marked this conversation as resolved.
Show resolved Hide resolved
label: South Carolina sales and use tax senior exclusion percentage
reference:
- title: SC REVENUE RULING 08-5
href: https://dor.sc.gov/resources-site/lawandpolicy/Advisory%20Opinions/RR08-5.pdf#page=2

values:
2021-01-01: 0.01
shuyu7zhan marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: South Carolina imposes a general sales and use tax rate of this amount.
metadata:
unit: /1
shuyu7zhan marked this conversation as resolved.
Show resolved Hide resolved
label: South Carolina general sales and use tax
shuyu7zhan marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: SC REVENUE RULING 08-5
href: https://dor.sc.gov/resources-site/lawandpolicy/Advisory%20Opinions/RR08-5.pdf#page=1

values:
2021-01-01: 0.06
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- name: Person age 85 or above eligible for tax exclusion
period: 2022
input:
age: 90
state_code: SC
output:
sc_sales_and_use_exclusion_eligible: true

- name: Person age under 85 not eligible for tax exclusion
period: 2022
input:
age: 70
state_code: SC
output:
sc_sales_and_use_exclusion_eligible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- name: Person age 85 or above eligible for tax exclusion
period: 2022
input:
sc_sales_and_use_exclusion_eligible: true
sc_sales_and_purchases_proceeds: 10_000
state_code: SC
output:
sc_sales_and_use_tax: 500

- name: Person age under 85 not eligible for tax exclusion
period: 2022
input:
sc_sales_and_use_exclusion_eligible: false
sc_sales_and_purchases_proceeds: 10_000
state_code: SC
output:
sc_sales_and_use_tax: 600
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from policyengine_us.model_api import *


class sc_sales_and_purchases_proceeds(Variable):
value_type = float
entity = TaxUnit
shuyu7zhan marked this conversation as resolved.
Show resolved Hide resolved
label = "South Carolina sales and purchases proceeds"
unit = USD
definition_period = YEAR
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this apply to the whole unit?

For example, if there are two people in the tax unit and only one is 85 or over, does the exclusion apply only to that person's portion of purchase proceeds or is it the whole?

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from policyengine_us.model_api import *


class sc_sales_and_use_exclusion_eligible(Variable):
value_type = bool
entity = TaxUnit
label = "Eligible for South Carolina sales and use tax senior exclusion"
definition_period = YEAR
reference = "https://dor.sc.gov/resources-site/lawandpolicy/Advisory%20Opinions/RR08-5.pdf#page=2"
defined_for = StateCode.SC

def formula(tax_unit, period, parameters):
p = parameters(period).gov.states.sc.tax.sales_and_use.exclusion
person = tax_unit.members
age = person("age", period)
age_eligible = age >= p.age_threshold
return age_eligible
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from policyengine_us.model_api import *


class sc_sales_and_use_tax(Variable):
value_type = float
entity = TaxUnit
label = "South Carolina sales and use tax"
unit = USD
reference = "https://dor.sc.gov/forms-site/Forms/ST3.pdf#page=2"
definition_period = YEAR
defined_for = StateCode.SC

def formula(tax_unit, period, parameters):
p = parameters(period).gov.states.sc.tax.sales_and_use

# base amount
taxable_sales_and_purchases = tax_unit(
"sc_sales_and_purchases_proceeds", period
)

# sales and use tax rate with eligible exclusion
eligible = tax_unit("sc_sales_and_use_exclusion_eligible", period)
exclusion = p.exclusion.percentage * eligible
rate_applied = p.general - exclusion
shuyu7zhan marked this conversation as resolved.
Show resolved Hide resolved

# return base amount * rate_applied
return taxable_sales_and_purchases * rate_applied
Loading