Skip to content

Commit

Permalink
South Carolina sales tax cut for people age 85 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyu7zhan committed Jan 20, 2025
1 parent 39ad0e5 commit 2b9a4ab
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 5 deletions.
2 changes: 1 addition & 1 deletion changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- bump: minor
changes:
added:
- South Carolina sales tax cut for people age 85 and older.
- South Carolina sales and use tax, general and elderly.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
description: South Carolina provides a lower state tax rate for sales and use by individuals of this age and older.
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
label: South Carolina sales tax exclusion for the elderly
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: South Carolina provides the following percentage of exclusion for sales and use tax.
description: South Carolina excludes the following percentage of the sales and use tax for elderly filers.
metadata:
unit: /1
label: South Carolina senior exemption amount
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
Expand Down
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
label: South Carolina general sales and use tax
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,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,22 @@
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
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

# 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

# return base amount * rate_applied

0 comments on commit 2b9a4ab

Please sign in to comment.