Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- Round Arkansas deduction allocation fraction to nearest whole percent.
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,24 @@
state_code: AR
output:
ar_itemized_deductions_indiv: [1_000, 0]

- name: Split the itemized deductions 60% and 40%, rounded to the nearest %
period: 2022
input:
people:
person1:
is_tax_unit_head: true
ar_agi_indiv: 61_334
person2:
is_tax_unit_head: false
ar_agi_indiv: 42_129
tax_units:
tax_unit:
members: [person1, person2]
ar_medical_expense_deduction_indiv: 1_000
households:
household:
members: [person1, person2]
state_code: AR
output:
ar_itemized_deductions_indiv: [590, 410]
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ def formula(person, period, parameters):
prorate = np.zeros_like(total_agi)
mask = total_agi > 0
prorate[mask] = person_agi[mask] / total_agi[mask]

# Round prorate to the nearest percent and then divide by 100
prorate = np.round(prorate * 100) / 100

# Dependents should always return 0 as their AGI is always
# attributed to the head of the tax unit in ar_agi
return unit_deds * prorate