Virginia TANF: va_tanf_countable_earned_income deducts SNAP's FY2020 standard deduction; Virginia uses the SNAP standard deduction in effect
维护者通常 2 天内回复
@PavelMakarchuk 已经在做这个了。
开始于 2026年10月16日。
评估
调研方向
Find the definition of va_tanf_countable_earned_income and the parameter gov.states.va.dss.tanf.income.deductions.earned.flat; read how the parameter is dated and how assistance-unit size is used. Compare that logic with gov.usda.snap.income.deductions.standard and the cited Virginia manual. Done when the January 2025 example matches the intended SNAP deduction and relevant tests pass.
由索引模型根据 Issue 内容生成。
描述
Summary
va_tanf_countable_earned_income subtracts gov.states.va.dss.tanf.income.deductions.earned.flat: $167 (1-3 people), $178 (4), $209 (5), $240 (6+), dated 2016-01-01. Those are SNAP's fiscal-year-2020 standard deductions, copied from the 11/20 TANF Manual that the parameter cites (305.1 A.2, page 29). Virginia's TANF standard deduction is the SNAP one, and the manual's table has moved with SNAP:
- Virginia TANF Manual (7/24) 305.1 A.2.b ("Screening at the Standard of Assistance", page dated 10/23): "All AUs will be allowed the following deductions from earned income: The standard deduction*, the same amount used in the standard deduction for the SNAP program, and 20% of the remainder is deducted from the gross earnings." Its table: $198 (1-3), $208 (4), $244 (5), $279 (6+), SNAP's FY2024 amounts.
- 305.3 B.3: "A standard deduction is subtracted from the gross earned income for the assistance unit whose income is not otherwise exempt."
SNAP's standard deduction (48 states, gov.usda.snap.income.deductions.standard) is $198/$208/$244/$279 from October 2023, $204/$217/$254/$291 from October 2024 and $209/$223/$261/$299 from October 2025. The 7/24 manual is the newest on the VDSS manual page, so its table still shows the FY2024 amounts; its text ties the deduction to SNAP's.
Repro
Same result on 1.811.2 (45d51ef5d4) and on main (26348e7cf7).
from policyengine_us import Simulation
s = Simulation(situation={
"people": {"a": {"age": {"2025": 30}, "employment_income": {"2025": 6_000}},
"b": {"age": {"2025": 8}}, "c": {"age": {"2025": 5}}},
"tax_units": {"t": {"members": ["a", "b", "c"]}},
"spm_units": {"s": {"members": ["a", "b", "c"], "is_tanf_enrolled": {"2025": True}}},
"families": {"f": {"members": ["a", "b", "c"]}},
"households": {"h": {"members": ["a", "b", "c"], "state_name": {"2025": "VA"}}},
})
s.calculate("va_tanf_countable_earned_income", "2025-01") # 266.40 = 0.8 x (500 - 167)
Expected in January 2025: 236.80 = 0.8 x (500 - 204) with SNAP's FY2025 deduction (241.60 = 0.8 x (500 - 198) with the manual's table).
Possible fix
Compute the flat deduction from gov.usda.snap.income.deductions.standard (contiguous states) by assistance-unit size, or add the values from the manual's tables with their dates (and fix the 2016-01-01 date on the FY2020 values).
Impact on the PRD comparison
2025 aligned view, shared set: 3 Virginia units, $1,325 lower PE TANF (2026: $1,534).
- 主要语言
- Python
- 星标
- 171
- 派生
- 217
- 平均合并
- 5 天 2 小时
- 30 天内合并 PR
- 347
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/policyengine-us 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
PolicyEngine/policyengine-us#10652 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
PolicyEngine/policyengine-us#10552 ·
维护者通常 2 天内回复
-
South Carolina OSS: require SSI's citizen or qualified-noncitizen test (S.C. Code Regs. 126-920)未关闭
难度 2/5 1-3 小时 新手友好度 78/100
PolicyEngine/policyengine-us#10545 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
PolicyEngine/policyengine-us#10524 ·
维护者通常 2 天内回复
-
bug state-income-tax states/ia
难度 2/5 1-3 小时 新手友好度 83/100
PolicyEngine/policyengine-us#10512 ·
维护者通常 2 天内回复
查看 PolicyEngine/policyengine-us 的全部 Issue
相似的 Issue
-
[BUG]: Compliance rules never see Unity Catalog views as views可能已有人在做 @wagnercsantos 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
databrickslabs/ontos#1348 ·
维护者通常 3 天内回复
-
`forum_pr_poster` action will always return `none` when checking for pre-existing feedback threads, even if a feedback thread already exists.可能已有人在做 @pgmzeta 今天认领。 未关闭E-Verified P-Major
难度 2/5 1-3 小时 新手友好度 79/100
goonstation/goonstation#28259 ·
维护者通常 2 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
woonstadrotterdam/monumenten#70 ·
维护者通常 15 天内回复
-
binding:python bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
The Browser tab fails with a Wayland error when Open Terminal runs from a Wayland desktop session未关闭
难度 2/5 1-3 小时 新手友好度 78/100
open-webui/open-terminal#210 ·