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
1 change: 1 addition & 0 deletions changelog.d/wa-pte-collection-year-age.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Corrected Washington's senior property tax exemption age threshold to 62 in the collection year, matching age 61 at the preceding filing-year deadline. Kept the veteran rating parameter available for historical calculations before 2016.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
description: Washington sets this minimum age threshold for claimants under the Senior Citizens and Disabled Persons Property Tax Exemption program.
description: Washington qualifies senior claimants for its senior citizens and disabled persons property tax exemption at this minimum age at collection-year end.
values:
# RCW 84.36.381 requires age 61 by December 31 of the filing year.
# Taxes come due in the following year: 61 + 1 = 62 at collection-year end.
2008-01-01: 62
2020-01-01: 61

metadata:
unit: year
Expand All @@ -12,7 +13,13 @@ metadata:
href: https://app.leg.wa.gov/RCW/default.aspx?cite=84.36.381
- title: WAC 458-16A-130(2)(a)
href: https://app.leg.wa.gov/WAC/default.aspx?cite=458-16A-130
- title: ESHB 1105, Chapter 332, Laws of 2019 (lowered age from 62 to 61 effective 2020)
href: https://lawfilesext.leg.wa.gov/biennium/2019-20/Pdf/Bills/Session%20Laws/House/1105-S2.SL.pdf
- title: "2008 c 6 s 706 (2SHB 3104), RCW 84.36.381 #page 84-85"
href: https://lawfilesext.leg.wa.gov/biennium/2007-08/Pdf/Bills/Session%20Laws/House/3104-S2.SL.pdf#page=84
- title: "2015 3rd sp.s. c 30 ss 2, 4 (SSB 5186) #page 3-4,6"
href: https://lawfilesext.leg.wa.gov/biennium/2015-16/Pdf/Bills/Session%20Laws/Senate/5186-S.SL.pdf#page=3
- title: "2019 c 453 ss 1, 9 (ESSB 5160) #page 2-3,13"
href: https://lawfilesext.leg.wa.gov/biennium/2019-20/Pdf/Bills/Session%20Laws/Senate/5160-S.SL.pdf#page=2
- title: "2025 c 200 ss 1, 3 (EHB 1106) #page 2-3,5"
href: https://lawfilesext.leg.wa.gov/biennium/2025-26/Pdf/Bills/Session%20Laws/House/1106.SL.pdf#page=2
- title: Washington DOR Property Tax Exemption for Senior Citizens and People with Disabilities (PT0017)
href: https://dor.wa.gov/sites/default/files/2022-02/PTExemption_Senior.pdf
href: https://dor.wa.gov/sites/default/files/2022-02/PTExemption_Senior.pdf#page=1
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
description: Washington qualifies a veteran entitled to and receiving VA compensation for the senior citizens and disabled persons property tax exemption at a combined service-connected evaluation rating of at least this share.
values:
# The formula reads this threshold even when the pre-2016 pathway applies.
# An infinite threshold opens no combined-rating route in those years.
2008-01-01: .inf
# 2015 3rd sp.s. c 30 s 2: only a total disability rating qualifies.
2016-01-01: .inf
# 2019 c 453 s 1, for taxes levied for collection in 2020 and after (s 9).
Expand All @@ -11,10 +14,12 @@ metadata:
period: year
label: Washington senior and disabled property tax exemption veteran combined rating threshold
reference:
- title: 2008 c 6 s 706 (2SHB 3104), RCW 84.36.381(3)
href: https://lawfilesext.leg.wa.gov/biennium/2007-08/Pdf/Bills/Session%20Laws/House/3104-S2.SL.pdf#page=85
- title: RCW 84.36.381(3)(a)(ii)(A)
href: https://app.leg.wa.gov/RCW/default.aspx?cite=84.36.381
- title: RCW 84.36.381 as amended by 2015 3rd sp.s. c 30 s 2, with the s 4 application note
href: https://lawfilestestext.leg.wa.gov/LawTest/RCW%20Supplement/RCW%20%2084%20%20TITLE/RCW%20%2084%20.%2036%20%20CHAPTER/RCW%20%2084%20.%2036%20.381.htm
- title: "2015 3rd sp.s. c 30 ss 2, 4 (SSB 5186) #page 3-4,6"
href: https://lawfilesext.leg.wa.gov/biennium/2015-16/Pdf/Bills/Session%20Laws/Senate/5186-S.SL.pdf#page=3
- title: "2019 c 453 ss 1, 9 (ESSB 5160) #page 3,13"
href: https://lawfilesext.leg.wa.gov/biennium/2019-20/Pdf/Bills/Session%20Laws/Senate/5160-S.SL.pdf#page=3
- title: "2025 c 200 ss 1, 3 (EHB 1106) #page 3,5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ metadata:
href: https://app.leg.wa.gov/RCW/default.aspx?cite=84.36.381
- title: 2008 c 6 s 706 (2SHB 3104), RCW 84.36.381(3)
href: https://lawfilesext.leg.wa.gov/biennium/2007-08/Pdf/Bills/Session%20Laws/House/3104-S2.SL.pdf#page=85
- title: RCW 84.36.381 as amended by 2015 3rd sp.s. c 30 s 2, with the s 4 application note
href: https://lawfilestestext.leg.wa.gov/LawTest/RCW%20Supplement/RCW%20%2084%20%20TITLE/RCW%20%2084%20.%2036%20%20CHAPTER/RCW%20%2084%20.%2036%20.381.htm
- title: "2015 3rd sp.s. c 30 ss 2, 4 (SSB 5186) #page 3-4,6"
href: https://lawfilesext.leg.wa.gov/biennium/2015-16/Pdf/Bills/Session%20Laws/Senate/5186-S.SL.pdf#page=3
202 changes: 202 additions & 0 deletions policyengine_us/tests/core/test_wa_pte_age_invariants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
"""Check Washington exemption age and pathway invariants in collection years.

A claimant aged 61 on December 31 of the filing year reaches 62 by the end
of the following collection year. Each generated claimant appears at their
drawn age, at an older age, below the age threshold, and with disability
retirement. One simulation evaluates those arrangements in every boundary
year, sharing the unreformed system without copying its parameter tree.

The properties compare those arrangements, including fractional age inputs.
They check that, in every boundary year, a Washington claimant qualifies by
age only from 62 and qualifies through a disability or veteran pathway at
any age. Separate YAML cases check the worked households and exemption
amounts. The 2008 case also checks that the rating threshold exists before
the VA-rating pathway begins.

References:
- RCW 84.36.381(3):
https://app.leg.wa.gov/RCW/default.aspx?cite=84.36.381
- 2008 c 6 section 706:
https://lawfilesext.leg.wa.gov/biennium/2007-08/Pdf/Bills/Session%20Laws/House/3104-S2.SL.pdf#page=85
- 2015 3rd sp.s. c 30 sections 2 and 4:
https://lawfilesext.leg.wa.gov/biennium/2015-16/Pdf/Bills/Session%20Laws/Senate/5186-S.SL.pdf#page=3
- 2019 c 453 sections 1 and 9:
https://lawfilesext.leg.wa.gov/biennium/2019-20/Pdf/Bills/Session%20Laws/Senate/5160-S.SL.pdf#page=3
- 2025 c 200 sections 1 and 3:
https://lawfilesext.leg.wa.gov/biennium/2025-26/Pdf/Bills/Session%20Laws/House/1106.SL.pdf#page=3
"""

import numpy as np
from hypothesis import HealthCheck, example, given, settings
from hypothesis import strategies as st

from policyengine_us import Simulation
from policyengine_us.system import system as SYSTEM

YEARS = (2008, 2015, 2016, 2019, 2020, 2026, 2027)
DRAWN, OLDER, YOUNGER, DISABILITY = range(4)
VARIANTS = (DRAWN, OLDER, YOUNGER, DISABILITY)
# Collection-year veteran requirements, independent of model parameters.
RATING_THRESHOLDS = {
2008: None,
2015: None,
2016: 1,
2019: 1,
2020: 0.8,
2026: 0.8,
2027: 0.4,
}


def claimant(age=45, *, state="WA", age_increase=1, **inputs):
return {
"state": state,
"age_increase": age_increase,
"age": age,
"is_veteran": False,
"wa_pte_retired_due_to_disability": False,
"wa_pte_wholly_service_connected_disability": False,
"wa_pte_receives_va_disability_compensation": False,
"wa_pte_va_service_connected_rating": 0,
"wa_pte_va_total_disability_rating": False,
**inputs,
}


@st.composite
def claimants(draw):
return claimant(
age=draw(
st.one_of(
st.sampled_from([60, 60.75, 61, 61.25, 61.75, 62, 62.25]),
st.integers(0, 400).map(lambda quarters: quarters / 4),
)
),
state=draw(st.sampled_from(["WA", "OR"])),
age_increase=draw(st.integers(0, 80).map(lambda quarters: quarters / 4)),
is_veteran=draw(st.booleans()),
wa_pte_retired_due_to_disability=draw(st.booleans()),
wa_pte_wholly_service_connected_disability=draw(st.booleans()),
wa_pte_receives_va_disability_compensation=draw(st.booleans()),
wa_pte_va_service_connected_rating=draw(
st.sampled_from([0, 0.39, 0.4, 0.79, 0.8, 0.99, 1])
),
wa_pte_va_total_disability_rating=draw(st.booleans()),
)


def _situation(cases):
people, tax_units, households = {}, {}, {}
for index, case in enumerate(cases):
for variant in VARIANTS:
name = f"person_{index}_{variant}"
inputs = {
key: value
for key, value in case.items()
if key not in ("state", "age_increase")
}
if variant == OLDER:
inputs["age"] += case["age_increase"]
elif variant == YOUNGER:
inputs["age"] = 0
elif variant == DISABILITY:
inputs["wa_pte_retired_due_to_disability"] = True
inputs.update(
is_tax_unit_head=True,
is_tax_unit_spouse=False,
is_tax_unit_dependent=False,
real_estate_taxes=5_000,
)
people[name] = {
variable: {year: value for year in YEARS}
for variable, value in inputs.items()
}
tax_units[name] = {
"members": [name],
"tax_unit_is_joint": {year: False for year in YEARS},
"wa_pte_income_eligible": {year: True for year in YEARS},
}
households[name] = {
"members": [name],
"state_code": {year: case["state"] for year in YEARS},
}
return {"people": people, "tax_units": tax_units, "households": households}


def _non_age_pathway(case, year):
if case["state"] != "WA":
return False
if case["wa_pte_retired_due_to_disability"]:
return True
if not case["is_veteran"]:
return False
threshold = RATING_THRESHOLDS[year]
if threshold is None:
return case["wa_pte_wholly_service_connected_disability"]
return case["wa_pte_receives_va_disability_compensation"] and (
case["wa_pte_va_total_disability_rating"]
or case["wa_pte_va_service_connected_rating"] >= threshold
)


ANCHORS = [
claimant(age=61),
claimant(age=61.75),
claimant(age=62),
claimant(age=61, wa_pte_retired_due_to_disability=True),
claimant(age=61, state="OR"),
claimant(is_veteran=True, wa_pte_wholly_service_connected_disability=True),
*[
claimant(
is_veteran=True,
wa_pte_receives_va_disability_compensation=True,
wa_pte_va_service_connected_rating=rating,
)
for rating in (0.39, 0.4, 0.79, 0.8, 0.99, 1)
],
claimant(
is_veteran=True,
wa_pte_receives_va_disability_compensation=True,
wa_pte_va_total_disability_rating=True,
),
claimant(is_veteran=True, wa_pte_va_total_disability_rating=True),
claimant(
wa_pte_receives_va_disability_compensation=True,
wa_pte_va_service_connected_rating=1,
wa_pte_va_total_disability_rating=True,
),
]


@settings(
max_examples=10,
deadline=None,
derandomize=True,
suppress_health_check=[HealthCheck.too_slow],
)
@example(cases=ANCHORS)
@given(cases=st.lists(claimants(), min_size=1, max_size=12))
def test_wa_pte_collection_year_age_invariants(cases):
simulation = Simulation(situation=_situation(cases), tax_benefit_system=SYSTEM)
ages = np.asarray([case["age"] for case in cases])
in_wa = np.asarray([case["state"] == "WA" for case in cases])
for year in YEARS:
eligible = np.asarray(
simulation.calculate("wa_pte_categorical_eligible", year), dtype=bool
).reshape(-1, len(VARIANTS))
alternative = np.asarray([_non_age_pathway(case, year) for case in cases])
# Holding every pathway input fixed removes age as the cause.
np.testing.assert_array_equal(eligible[:, YOUNGER], alternative)
# Prior December 31 age = collection-year age - 1; 61 + 1 = 62.
np.testing.assert_array_equal(
eligible[:, DRAWN], alternative | (in_wa & (ages - 1 >= 61))
)
assert np.all(eligible[:, OLDER] >= eligible[:, DRAWN])
np.testing.assert_array_equal(eligible[:, DISABILITY], in_wa)
# Each claimant owns the home, meets the income test, and files alone.
np.testing.assert_array_equal(
np.asarray(simulation.calculate("wa_pte_eligible", year)).reshape(
-1, len(VARIANTS)
),
eligible,
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Property Tax Exemption (RCW 84.36.379-389; WAC 458-16A-100..150).
#
# Eligibility: someone who is the tax-unit head (or spouse in a joint return)
# satisfies the age threshold (62 pre-2020, 61 from 2020), retired from regular
# satisfies the age threshold (62 at collection-year end), retired from regular
# gainful employment by reason of disability, or the disabled veteran pathway;
# the tax unit owns an occupied residence (real_estate_taxes > 0);
# combined disposable income (annual) <= Tier 3 threshold for the household's county.
Expand Down Expand Up @@ -428,3 +428,41 @@
wa_pte_combined_disposable_income: 67_500
wa_pte_tier: 1
wa_senior_disabled_property_tax_exemption: 5_340

- name: Case 15, an owner aged 61 in collection year 2024 does not qualify by age.
period: 2024
input:
state_code: WA
county: KING_COUNTY_WA
age: 61
real_estate_taxes: 5_000
assessed_property_value: 500_000
adjusted_gross_income: 25_000
is_veteran: false
wa_pte_retired_due_to_disability: false
output:
# 61 - 1 = 60 at December 31, 2023; compare with the filing-year minimum of 61.
# Eligible Tier 1 amount: 5,000 x 0.30 + 500,000 x 0.60 x 0.007 = 3,600.
# Regular rate = 5,000 x 0.70 / 500,000 = 0.007; no eligibility gives zero.
wa_pte_categorical_eligible: false
wa_pte_eligible: false
wa_senior_disabled_property_tax_exemption: 0

- name: Case 16, an owner aged 62 in collection year 2024 qualifies by age.
period: 2024
input:
state_code: WA
county: KING_COUNTY_WA
age: 62
real_estate_taxes: 5_000
assessed_property_value: 500_000
adjusted_gross_income: 25_000
is_veteran: false
wa_pte_retired_due_to_disability: false
output:
# 62 - 1 = 61 at December 31, 2023; compare with the filing-year minimum of 61.
# Eligible Tier 1 amount: 5,000 x 0.30 + 500,000 x 0.60 x 0.007 = 3,600.
# Regular rate = 5,000 x 0.70 / 500,000 = 0.007.
wa_pte_categorical_eligible: true
wa_pte_eligible: true
wa_senior_disabled_property_tax_exemption: 3_600
Loading
Loading