Skip to content
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

Arizona one time Families Tax rebate #4633

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0831a38
add parameters, variables and tests
yy3187 Jun 11, 2024
a140d3c
Arizona one time Families Tax rebate
yy3187 Jun 11, 2024
f0a50e7
change parameters and varibles
yy3187 Jun 13, 2024
fab75a4
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
yy3187 Jun 13, 2024
7b99be7
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
yy3187 Jun 14, 2024
5a47a93
change variables
yy3187 Jun 14, 2024
556ffe0
add test cases
yy3187 Jun 17, 2024
b56d802
add to non refundable list
yy3187 Jun 18, 2024
048cd47
change variables
yy3187 Jun 18, 2024
3267206
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
yy3187 Jun 18, 2024
2708856
update variables
yy3187 Jun 20, 2024
7cabcc6
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
yy3187 Jun 20, 2024
576836b
add legal references.
yy3187 Jun 27, 2024
f3f6fc4
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
yy3187 Jun 27, 2024
1e0a248
edit legal reference
yy3187 Jul 11, 2024
94f1d7b
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
yy3187 Jul 11, 2024
20c780b
add legal codes
yy3187 Jul 15, 2024
1e20235
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
yy3187 Jul 15, 2024
bde746c
reduce age by 2 and edit parameters
yy3187 Jul 16, 2024
b067fb2
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
yy3187 Jul 18, 2024
7817179
add comments
yy3187 Jul 23, 2024
8b2494a
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
yy3187 Jul 23, 2024
a4634fc
edit variables
yy3187 Jul 25, 2024
312071f
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
yy3187 Jul 25, 2024
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: minor
changes:
added:
- Arizona one-time families tax rebate.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ values:
2019-01-01:
- az_dependent_tax_credit
- az_family_tax_credit
2023-01-01:
- az_one_time_families_tax_rebates
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
- az_dependent_tax_credit
- az_family_tax_credit
2024-01-01:
- az_dependent_tax_credit
- az_family_tax_credit
metadata:
unit: list
period: year
Expand All @@ -14,4 +21,5 @@ metadata:
href: https://azdor.gov/sites/default/files/2023-03/FORMS_INDIVIDUAL_2021_140i-2D.pdf#page=23
- title: 2023 Arizona Form 140A - Arizona Resident Personal Income Tax Booklet, Page 21 & 12
href: https://azdor.gov/forms/individual/form-140a-arizona-resident-personal-income-tax-booklet

- title: Arizona Families Tax Rebate
href: https://211arizona.org/wp-content/uploads/2023/11/Arizona-Families-Tax-Rebate.pdf#page=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
description: Arizona provides the following amounts of Tax Rebate, depending on child age.
yy3187 marked this conversation as resolved.
Show resolved Hide resolved

metadata:
unit: currency-USD
period: year
label: Arizona one-time families tax rebate per dependent
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
type: single_amount
threshold_unit: year
amount_unit: currency-USD
reference:
- title: Arizona Families Tax Rebate
href: https://211arizona.org/wp-content/uploads/2023/11/Arizona-Families-Tax-Rebate.pdf#page=1
- title: Arizona SENATE BILL 1734, Section 3(A)
href: https://www.azleg.gov/legtext/56leg/1R/bills/SB1734S.pdf#page=3
- title: ARIZONA STATE SENATE Fifty-Sixth Legislature, First Regular Session
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from this reference I see:
between October 15, 2023, and November 15, 2023
For the dates when the amount is paid out,

And the age requirement applies in 2021 so we need to check for the age in 2021 (depending on whether it applies just in 2023 or also in following years we could reduce the age by 2 and exclude children under 2)

href: https://www.azleg.gov/legtext/56leg/1R/summary/S.1734APPROP_ASPASSEDCOW.DOCX.htm
# Use a scale parameter with two brackets: $250 for under 17, $150 for 17 and older.
brackets:
- threshold:
2023-01-01: 0
amount:
2023-01-01: 250
- threshold:
2023-01-01: 17
amount:
2023-01-01: 100
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description: Arizona caps its one-time families tax rebate at this amount.
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
metadata:
period: year
unit: currency-USD
label: Arizona one-time families tax rebate maximum amount
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: Arizona Families Tax Rebate
href: https://211arizona.org/wp-content/uploads/2023/11/Arizona-Families-Tax-Rebate.pdf#page=1
- title: Arizona SENATE BILL 1734, Section 3(A)
href: https://www.azleg.gov/legtext/56leg/1R/bills/SB1734S.pdf#page=3
- title: ARIZONA STATE SENATE Fifty-Sixth Legislature, First Regular Session
href: https://www.azleg.gov/legtext/56leg/1R/summary/S.1734APPROP_ASPASSEDCOW.DOCX.htm
values:
2023-01-01: 750
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description: Arizona limites the following number of dependents regardless of age for families tax rebate.
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
metadata:
period: year
unit: person
label: Arizona one-time families tax rebate dependent cap
reference:
- title: Arizona Families Tax Rebate
href: https://211arizona.org/wp-content/uploads/2023/11/Arizona-Families-Tax-Rebate.pdf#page=1
- title: Arizona SENATE BILL 1734, Section 3(A)
href: https://www.azleg.gov/legtext/56leg/1R/bills/SB1734S.pdf#page=3
- title: ARIZONA STATE SENATE Fifty-Sixth Legislature, First Regular Session
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
href: https://www.azleg.gov/legtext/56leg/1R/summary/S.1734APPROP_ASPASSEDCOW.DOCX.htm
values:
2023-01-01: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- name: Arizona one-time families tax rebate eligible
period: 2023
input:
az_dependent_tax_credit: 2
state_code: AZ
output:
az_income_tax_rebates_eligibility: true


- name: Arizona one-time families tax rebate ineligible (claimed 0 dependent tax credit)
period: 2023
input:
az_dependent_tax_credit: 0
state_code: AZ
output:
az_income_tax_rebates_eligibility: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
- name: Arizona one-time families tax rebate with no dependents
period: 2023
input:
people:
person1:
is_tax_unit_dependent: false
age: 6
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: AZ
output:
az_one_time_families_tax_rebates: 0

- name: Arizona one-time families tax rebate with one younger dependent
period: 2023
input:
people:
person1:
is_tax_unit_dependent: true
age: 6
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: AZ
output:
az_one_time_families_tax_rebates: 250

- name: Arizona one-time families tax rebate with one younger dependent and one older dependent
period: 2023
input:
people:
person1:
is_tax_unit_dependent: true
age: 6
person2:
is_tax_unit_dependent: true
age: 18
tax_units:
tax_unit:
members: [person1,person2]
households:
household:
members: [person1,person2]
state_code: AZ
output:
az_one_time_families_tax_rebates: 350

- name: Arizona one-time families tax rebate amount capped by the maximum amount
period: 2023
input:
people:
person1:
is_tax_unit_dependent: true
age: 6
person2:
is_tax_unit_dependent: true
age: 10
person3:
is_tax_unit_dependent: true
age: 12
person4:
is_tax_unit_dependent: true
age: 18
tax_units:
tax_unit:
members: [person1,person2,person3,person4]
households:
household:
members: [person1,person2,person3,person4]
state_code: AZ
output:
az_one_time_families_tax_rebates: 750

- name: Arizona one-time families tax rebate amount capped by the maximum dependent count
period: 2023
input:
people:
person1:
is_tax_unit_dependent: true
age: 6
person2:
is_tax_unit_dependent: true
age: 21
person3:
is_tax_unit_dependent: true
age: 19
person4:
is_tax_unit_dependent: true
age: 20
person5:
is_tax_unit_dependent: true
age: 18
tax_units:
tax_unit:
members: [person1,person2,person3,person4,person5]
households:
household:
members: [person1,person2,person3,person4,person5]
state_code: AZ
output:
az_one_time_families_tax_rebates: 450 #250+100+100
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from policyengine_us.model_api import *


class az_income_tax_rebates_eligibility(Variable):
value_type = bool
entity = TaxUnit
label = "Arizona one-time families tax rebates eligibility"
documentation = "https://211arizona.org/wp-content/uploads/2023/11/Arizona-Families-Tax-Rebate.pdf"
definition_period = YEAR
defined_for = StateCode.AZ

def formula(tax_unit, period, parameters):
return tax_unit("az_dependent_tax_credit", period) > 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
from policyengine_us.model_api import *


class az_one_time_families_tax_rebates(Variable):
value_type = float
entity = TaxUnit
label = "Arizona one-time families tax rebates"
unit = USD
definition_period = YEAR
defined_for = "az_income_tax_rebates_eligibility"

def formula(tax_unit, period, parameters):
p = parameters(period).gov.states.az.tax.income.rebates
person = tax_unit.members
dependent = person("is_tax_unit_dependent", period)
age = person("age", period)
young_dependent = dependent & (age < p.amount.thresholds[-1])
young_dependent_count = tax_unit.sum(young_dependent)
dependent_count = tax_unit.sum(dependent)
capped_dependent_count = min_(p.dependent_cap, dependent_count)
rebate = p.amount.calc(age) * dependent
total_amount = tax_unit.sum(rebate)
capped_amount = min_(total_amount, p.cap)
young_amount = young_dependent_count * p.amount.calc(
p.amount.thresholds[-1] - 1
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
)
old_amount = (
capped_dependent_count - young_dependent_count
) * p.amount.calc(p.amount.thresholds[-1] + 1)
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
yy3187 marked this conversation as resolved.
Show resolved Hide resolved
return where(
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
young_dependent_count >= p.dependent_cap,
capped_amount,
young_amount + old_amount,
)
Loading