forked from PolicyEngine/policyengine-us
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
South Carolina sales tax cut for people age 85 and older
Fixes PolicyEngine#5387
- Loading branch information
1 parent
39ad0e5
commit 2b9a4ab
Showing
6 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
5 changes: 3 additions & 2 deletions
5
...sc/tax/sales/exclusion/age_threshold.yaml → ...ales_and_use/exclusion/age_threshold.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
4 changes: 2 additions & 2 deletions
4
...es/sc/tax/sales/exclusion/percentage.yaml → ...x/sales_and_use/exclusion/percentage.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
policyengine_us/parameters/gov/states/sc/tax/sales_and_use/general.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
17 changes: 17 additions & 0 deletions
17
...ngine_us/variables/gov/states/sc/tax/sales_and_use/sc_sales_and_use_exclusion_eligible.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
22 changes: 22 additions & 0 deletions
22
policyengine_us/variables/gov/states/sc/tax/sales_and_use/sc_sales_and_use_tax.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |