Expand Universal Credit: childcare element + capital/tariff income#82
Open
vahid-ahmadi wants to merge 1 commit into
Open
Expand Universal Credit: childcare element + capital/tariff income#82vahid-ahmadi wants to merge 1 commit into
vahid-ahmadi wants to merge 1 commit into
Conversation
Port the missing UC childcare element (85% of registered costs, capped at the 2025/26 DWP maxima) and the capital test (£6k disregard, £16k cliff, £4.35/£250 tariff income) into the structured UC element functions, with worked-example tests and DWP 2025/26 parameters. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
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.
Addresses #40
Builds on the already-structured
calculate_universal_credit(standard allowance, child/disabled-child, LCWRA, carer, housing, work allowance + 55% taper, unearned income) by porting two elements that were missing relative to the Pythongov/dwp/universal_credit/tree.Scope (this PR)
uc_childcare_element_monthly) — 85% of registered childcare costs for working benunits, capped at the DWP 2025/26 monthly maxima (£1,031.88 one child / £1,768.94 two-or-more). UC Regs 2013 regs.31–35.uc_tariff_income_annual+ cliff incalculate_universal_credit).UniversalCreditParamsfields are#[serde(default)]so all prior-year YAMLs still deserialise; correct 2025/26 figures set inparameters/2025_26.yaml.LEGISLATIVE_REFERENCE.mdsections 3.6 (childcare) and 3.7 (capital) added; changelog fragment added.Already structured on
main(in scope of #40, present before this PR)Standard allowance (4 bands), child element with two-child limit, disabled-child element, LCWRA element, carer element, housing element (LHA-capped), work allowance (lower/higher) + 55% earnings taper, unearned income, take-up gating via would-claim flags.
Remaining
Tests
cargo buildandcargo testpass (195 tests). New worked-example tests: couple over-25 + 2 children (no earnings), couple + 2 children with £12k earnings taper, £16k capital cliff, £6.5k tariff income (£104.40/yr), and the childcare element (coverage, cap, and work condition).🤖 Generated with Claude Code