-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Delaware itemized deductions logic
Fixes #4362
- Loading branch information
1 parent
db2a86c
commit d062435
Showing
3 changed files
with
81 additions
and
1 deletion.
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
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
14 changes: 14 additions & 0 deletions
14
policyengine_us/variables/gov/states/de/tax/income/deductions/de_tax_unit_itemizes.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,14 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class de_tax_unit_itemizes(Variable): | ||
value_type = bool | ||
entity = TaxUnit | ||
label = "Whether the tax unit in Delaware itemizes the deductions when married filing separately" | ||
definition_period = YEAR | ||
defined_for = StateCode.MT | ||
|
||
def formula(tax_unit, period, parameters): | ||
itemized_ded = add(tax_unit, period, ["de_itemized_deductions_indiv"]) | ||
standard_ded = add(tax_unit, period, ["de_standard_deduction_indiv"]) | ||
return itemized_ded > standard_ded |