-
Notifications
You must be signed in to change notification settings - Fork 201
Implement North Dakota TANF program #7074
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
Open
hua7450
wants to merge
13
commits into
PolicyEngine:main
Choose a base branch
from
hua7450:nd-tanf
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or 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
Starting implementation of North Dakota TANF program. Documentation and parallel development will follow. Related to PolicyEngine#7073
Implements the North Dakota Department of Health and Human Services TANF program including: - Income eligibility (50% FPL standard of need) - Earned income deductions (Standard Employment Expense, TLP) - Resource limits ($3k/1 person, $6k/2+) - Benefit calculation (standard of need - countable income) - Comprehensive test coverage (75 tests) Closes PolicyEngine#7073 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7074 +/- ##
============================================
+ Coverage 73.03% 100.00% +26.96%
============================================
Files 3550 9 -3541
Lines 51113 125 -50988
Branches 263 0 -263
============================================
- Hits 37328 125 -37203
+ Misses 13770 0 -13770
+ Partials 15 0 -15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Rename nd_tanf_resource_eligible.py to nd_tanf_resources_eligible.py to match the class name nd_tanf_resources_eligible - Remove orphaned parameters not used by any variable: - housing_supplement.yaml ($50) - out_of_home_allowance.yaml ($45) - self_employment/rate.yaml (25%) - Update resource limit references from NCCP (nonprofit source) to official North Dakota Policy Manual 400-19-55-05-05 Asset Limits - Add nd_tanf_time_limited_percentage_deduction.yaml unit tests (7 tests) covering zero income, low income, SEE crossover, and multiple earners All 87 ND TANF tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Update standard employment expense and time limited percentage parameter references to use Policy Manual 400-19-105-25 Employment Disregards, which explicitly defines both deductions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
PolicyEngine cannot simulate lifetime limits due to single-period architecture, so this parameter is not used by any variable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Document that TLP is actually a declining 12-month disregard cycle (50%/35%/25%/0%) and that we use 50% as a simplification since PolicyEngine cannot track months on TANF across periods. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
The $10 minimum benefit threshold is not modeled. Update nd_tanf variable to use simple benefit formula and update tests accordingly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implements North Dakota's Temporary Assistance for Needy Families (TANF) program.
Closes #7073
Regulatory Authority
Income Eligibility Tests
Net Income Test
Countable income must be less than the Standard of Need.
Source: Policy Manual 400-19-110-15
Income Deductions & Exemptions
1. Standard Employment Expense Allowance
Formula: Greater of 27% of gross earned income OR $180
Applied first to gross earned income before other deductions.
Source: Policy Manual 400-19-105-25
2. Time Limited Percentage (TLP) Disregard
Rate: 50% of remaining earned income (after Standard Employment Expense)
Applied to earnings after the Standard Employment Expense deduction.
Source: Policy Manual 400-19-105-25
Income Standards
Standard of Need (Effective 2025-10-01)
North Dakota uses a 2D lookup table based on the number of caretakers (0, 1, or 2) and children (0-10) in the household.
Historical Values: Parameters include values effective 2015-10-01, 2023-08-01, 2024-10-01, and 2025-10-01.
Sources:
Resource Limits
Source: Policy Manual 400-19-55-05-05 Asset Limits
Benefit Calculation
Formula
Source: Policy Manual 400-19-110-20 Benefit Calculation
Example Calculation
Family of 3 (1 caretaker, 2 children) with $1,500/month earned income:
Out of Scope
The following are not modeled in this implementation:
Benefit Rules
Income Deductions
Special Allowances
Time Limits
Files Added
Parameters (7 files)
Variables (9 files)
Tests (8 files, 81 tests)
Test Coverage
🤖 Generated with Claude Code