-
Notifications
You must be signed in to change notification settings - Fork 178
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
Optional Sales Tax #5370
base: master
Are you sure you want to change the base?
Optional Sales Tax #5370
Conversation
...cyengine_us/parameters/gov/irs/deductions/itemized/salt_and_real_estate/state_sales_tax.yaml
Outdated
Show resolved
Hide resolved
...cyengine_us/parameters/gov/irs/deductions/itemized/salt_and_real_estate/state_sales_tax.yaml
Outdated
Show resolved
Hide resolved
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.
The enum should just determine which income bracket (1 through 19) the household is in
If income is 0 to 20,000 -> 1
if income is 20,001 to 40,000 -> 2
Etc.
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.
The actual sales tax value is determined separately in a different file
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.
Follow the exact same format from filing_status.py
Or from any other value_type = Enum
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.
could we write a unit test?
|
||
|
||
class StateSalesTax(Enum): | ||
1 = "0" |
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.
1 = "0" | |
Zero = "ZERO" |
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.
and others
from policyengine_us.model_api import * | ||
|
||
|
||
class StateSalesTax(Enum): |
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.
class StateSalesTax(Enum): | |
class StateSalesTaxIncomeBracket(Enum): |
18 = "275000" | ||
19 = "300000" | ||
|
||
class state_sales_tax(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.
class state_sales_tax(Variable): | |
class state_sales_tax_income_bracket(Variable): |
class state_sales_tax(Variable): | ||
value_type = Enum | ||
entity = SPMUnit | ||
possible_values = StateSalesTax |
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.
possible_values = StateSalesTax | |
possible_values = StateSalesTaxIncomeBracket |
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.
add changelog
2023 Optional sales tax tables