Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
7a5076c
Value means-tested capital less sale expenses and secured debt
MaxGhenis Sep 30, 2026
0d315ed
Tighten citations and tests from the adversarial review
MaxGhenis Oct 1, 2026
e51391f
Cite R(IS) 21/93 for real property in the HB sale-expense sources
MaxGhenis Oct 1, 2026
ea1e429
Merge origin/main into uc-capital-sale-expenses
Oct 3, 2026
22274ca
Value capital under reg 19 in two Pension Credit tests from main
MaxGhenis Oct 4, 2026
c1ebc4d
Merge remote-tracking branch 'origin/wealth-share-components' into sa…
MaxGhenis Oct 4, 2026
b1a6600
Exempt unit trusts and stocks and shares ISAs from the sale-expense d…
MaxGhenis Oct 4, 2026
a885743
Merge origin/main into uc-capital-sale-expenses
Oct 12, 2026
f3929c1
Value capital under reg 19 in the corporate_wealth CTR case from main
MaxGhenis Oct 12, 2026
503bebb
Merge remote-tracking branch 'origin/main' into uc-capital-sale-expenses
MaxGhenis Oct 12, 2026
54ed063
Skip passported families in the HB valuation property
MaxGhenis Oct 12, 2026
62c6139
Merge remote-tracking branch 'origin/uc-capital-sale-expenses' into s…
MaxGhenis Oct 12, 2026
8204fb1
Merge remote-tracking branch 'origin/wealth-share-components' into sa…
MaxGhenis Oct 12, 2026
b7e6bc5
Split share-like capital by expenses of sale on #1974's block design
MaxGhenis Oct 12, 2026
3abaf16
Assert nil HB capital for passported units and keep non-passported cover
MaxGhenis Oct 13, 2026
b541677
Merge remote-tracking branch 'origin/main' into uc-capital-sale-expenses
MaxGhenis Oct 13, 2026
10c54a5
Start the exempt list in 1996, sum it from zero, and test float32 gro…
MaxGhenis Oct 13, 2026
7409ab4
Merge remote-tracking branch 'origin/uc-capital-sale-expenses' into s…
MaxGhenis Oct 13, 2026
33c71a7
Merge remote-tracking branch 'origin/wealth-share-components' into sa…
MaxGhenis Oct 13, 2026
1efee62
Guarantee both Housing Benefit branches are exercised
MaxGhenis Oct 13, 2026
183c7b1
Merge remote-tracking branch 'origin/uc-capital-sale-expenses' into s…
MaxGhenis Oct 13, 2026
6a5a13a
Merge remote-tracking branch 'origin/wealth-share-components' into sa…
MaxGhenis Oct 13, 2026
2eb4e52
Value the savings-credit-only capital test under reg 19
MaxGhenis Oct 19, 2026
a7d8988
Merge origin/main into uc-capital-sale-expenses
Oct 19, 2026
ce8493d
Consume a recorded total's holding at its counted value; round to the…
MaxGhenis Oct 20, 2026
57f9370
Value capital less sale expenses in float64, to the penny
MaxGhenis Oct 20, 2026
b3f6f60
Round capital to the penny as each programme's regulations require
MaxGhenis Oct 21, 2026
fab2993
Merge remote-tracking branch 'origin/uc-capital-sale-expenses' into s…
MaxGhenis Oct 22, 2026
e78257a
Merge #1974 (660047702) into sale-expense-share-split on #1969's b3f6…
MaxGhenis Oct 22, 2026
9b9ef66
Keep stored whole pennies through float64 paths; fix the CI failures
MaxGhenis Oct 22, 2026
acafa19
Merge origin/main: value share_like_capital less sale expenses
MaxGhenis Oct 24, 2026
8123540
Value each Lifetime ISA to the penny in float64 under each programme'…
MaxGhenis Oct 24, 2026
0531bc9
Add overseas and other property components on capital valuation stack
MaxGhenis Oct 26, 2026
825fe3d
Tighten capital source validation and document UC report routing
MaxGhenis Oct 26, 2026
bc742b9
Reuse a read-only model for property metadata assertions
MaxGhenis Oct 26, 2026
199c534
Exercise formula properties with fresh lightweight simulations
MaxGhenis Oct 26, 2026
442f033
Use the current Towncrier fragment style
MaxGhenis Oct 26, 2026
28164b2
Merge origin/main into property-wealth-overseas-other
MaxGhenis Oct 27, 2026
1193614
Fix the company capital conservation rounding oracle
MaxGhenis Oct 27, 2026
6c5cbc8
Retain property alongside financial-only capital reports
MaxGhenis Oct 27, 2026
798491c
Sum domestic property directly when estimating household land
MaxGhenis Oct 27, 2026
a677cb3
Preserve supplied and reformed Lifetime ISA capital values
MaxGhenis Oct 28, 2026
6467438
Merge origin/main into capital sale-expense valuation
MaxGhenis Oct 28, 2026
d5c2a57
Fix the company capital conservation penny-rounding oracle
MaxGhenis Oct 28, 2026
b168dc5
Give the capital property households a cash ISA
MaxGhenis Oct 28, 2026
696ae34
Keep Core's defined_for mask in the exact Lifetime ISA valuation
MaxGhenis Oct 29, 2026
dbc0c58
Run no Lifetime ISA formula when its defined_for mask applies to nobody
MaxGhenis Oct 29, 2026
5efb62c
Merge main into uc-capital-sale-expenses
MaxGhenis Oct 29, 2026
fc066bd
Expect the sale-expense deduction on a stocks-and-shares ISA in UC ca…
MaxGhenis Oct 29, 2026
30d48c0
Merge main into uc-capital-sale-expenses
MaxGhenis Oct 31, 2026
3a3241c
Say which means tests deduct land debt
MaxGhenis Oct 31, 2026
c3fe7af
Merge #1969 (3a3241cf6) into sale-expense-share-split
MaxGhenis Oct 31, 2026
90e52b4
Count an itemised stocks-and-shares ISA in full in every means test
MaxGhenis Oct 31, 2026
ce36094
Test that every means test values itemised holdings by type
MaxGhenis Oct 31, 2026
2f1051e
Rename the shard-duration lines for the share-components tests this P…
MaxGhenis Oct 31, 2026
6a0d26d
Test that the part with sale expenses stops at nil
MaxGhenis Oct 31, 2026
962771f
Merge origin/main into property-wealth-overseas-other
claude Nov 2, 2026
0e5cd48
Pin zero new property inputs to main and state the Pension Credit sto…
claude Nov 2, 2026
e041345
Value the stocks-and-shares ISA less sale expenses in the stored-tota…
claude Nov 2, 2026
ff0552d
Pin row 8 UC capital, assert C2's pinned allocations exactly and chec…
claude Nov 2, 2026
188f64f
Narrow the zero-input comment, drop the redundant exact household tot…
claude Nov 2, 2026
f40cb89
Scope the engineering page's unmeasured effects to the compatible dat…
claude Nov 2, 2026
ba4de95
Merge main at 0080274d7 into uc-capital-sale-expenses
claude Nov 2, 2026
c11d7c1
Value the stocks-and-shares ISA less sale expenses in the stored-tota…
claude Nov 2, 2026
b4e8722
Merge main at 52b30809f into uc-capital-sale-expenses
MaxGhenis Nov 3, 2026
5b35e02
Merge uc-capital-sale-expenses at b4e872273 into the property-wealth …
claude Nov 3, 2026
35a2971
Shorten the overseas and other real estate changelog fragment
claude Nov 3, 2026
1aacd32
Drop the duplicate HOLDINGS_SOURCE import the merge left in uc_assess…
claude Nov 3, 2026
ee325c5
Merge #1969 at b4e872273 into sale-expense-share-split
claude Nov 3, 2026
ce91e92
Expect the stocks-and-shares ISA at face value in the stored-totals test
claude Nov 3, 2026
0d760fc
Describe the Pension Credit fix in the changelog and correct six comm…
MaxGhenis Nov 3, 2026
80e0d34
Correct the Pension Credit override text, test comments and legacy ci…
claude Nov 3, 2026
154f922
Merge main at af9361114 into uc-capital-sale-expenses
claude Nov 4, 2026
76242a0
Count main's person ISA oracles at each programme's sale-expense share
claude Nov 4, 2026
3c395c3
Merge main at 95dfc62f8 into uc-capital-sale-expenses
claude Nov 5, 2026
3dbdb00
List owned_land_secured_debt among the per capita GDP variables
claude Nov 5, 2026
d7caeda
Merge #1969 at 3dbdb0027 into property-wealth-overseas-other
claude Nov 5, 2026
b654996
Count overseas and other real estate in council tax reduction's own c…
claude Nov 5, 2026
2567d1c
Cite the overseas valuation rules in the legacy sale-expense rates
claude Nov 5, 2026
f6dcf99
List overseas and other real estate among the per capita GDP variables
claude Nov 5, 2026
8bfd46a
Test that council tax reduction counts each new input at 90%
claude Nov 5, 2026
14ea777
Merge #1969 at 59a1c4ad2 into property-wealth-overseas-other
MaxGhenis Nov 5, 2026
59a1c4a
Name the formula and the model in the capital changelog fragment
MaxGhenis Nov 5, 2026
7849e11
Cite the overseas rules in council tax reduction's sale-expense rate
MaxGhenis Nov 5, 2026
a418a00
Merge origin/main (83c2554b2) into #1969's branch
MaxGhenis Nov 12, 2026
2a1725e
Merge #1969's head a418a0040 (with main 83c2554b2) into #2131's branch
MaxGhenis Nov 12, 2026
65cebd3
Count person stocks and shares ISAs at face value in main's ISA tests
MaxGhenis Nov 12, 2026
df8c1ea
Value the share-like parts separately in main's ISA property tests
MaxGhenis Nov 12, 2026
3fe76ee
Allow float32's step in the itemised-holdings means-test property
MaxGhenis Nov 13, 2026
690a562
Say the full ISA value rests on ADM H1656's silence on costs of sale
MaxGhenis Nov 16, 2026
d6cf325
Check that every sale-expense name is a counted capital source
MaxGhenis Nov 16, 2026
8f755b9
Describe the share split in #1969's fragment, the ISA docs and test c…
MaxGhenis Nov 16, 2026
65fc4a6
Merge #1969 at 8f755b981, with #2131 folded in, into #2688
MaxGhenis Nov 16, 2026
43ac48a
Route person ISAs by the exempt list and keep the share parts and com…
MaxGhenis Nov 16, 2026
1b41af9
Tighten the wording of the ISA bound, share-part and pool-scale docst…
MaxGhenis Nov 16, 2026
630b0e2
Merge #1969's head 1b41af993 (fold-r1 fixes) into #2688
MaxGhenis Nov 16, 2026
6e4c632
Say what CTR's capital route leaves out, and list CTR among the capit…
MaxGhenis Nov 16, 2026
2825580
Bound person ISA balances by the holdings behind their part, and scop…
MaxGhenis Nov 16, 2026
a238aa2
Say invariant 9's sweep checks Universal Credit's counting of the parts
MaxGhenis Nov 16, 2026
45c48dc
Bound ISA balances by a stored part that falls short of its holdings,…
MaxGhenis Nov 16, 2026
2d4b7ad
Bound ISA balances by an overridden stored part however little it fal…
MaxGhenis Nov 17, 2026
84bda06
Describe the override bound in invariant 10 and the stored-part test
MaxGhenis Nov 17, 2026
74980bd
State the ISA override bound only where it holds: nil for parts of ni…
MaxGhenis Nov 17, 2026
0f35157
Qualify the ISA stored-part bound text for missing aggregates
MaxGhenis Nov 17, 2026
329f05c
Merge #1969's head 0f35157f9 into #2688
MaxGhenis Nov 17, 2026
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/2577.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The model now counts overseas and other real estate in property wealth and in every means-tested capital assessment that includes household property. The Pension Credit formula now adds owned land, non-residential property and residential property other than the main residence to a financial-only capital report instead of letting the report replace them. The household land formula now applies regional land intensity to residential, non-residential and other real estate instead of property_wealth, and adds direct UK land once at full value. On the certified file, whose producer imputed the saved property_wealth total and the components separately, household land at data-year values rises from about £5,113bn to £5,521bn ([measurement](https://github.com/PolicyEngine/policyengine-uk/pull/2688#issuecomment-6449462413)).
1 change: 1 addition & 0 deletions changelog.d/sale-expense-share-split.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Value share-like capital by asset type in the six DWP capital assessments (Universal Credit, Pension Credit, Housing Benefit, Income Support, income-based JSA and income-related ESA). Directly held shares, and any `corporate_wealth` a dataset does not itemise, take the 10% sale-expense deduction. Unit trusts count at full value (ADM H1673-H1674), as does the survey's combined unit and investment trust bucket, an approximation for its investment trusts. Stocks and shares ISAs count at their full withdrawal value, a reading that rests on ADM H1656 saying nothing about costs of sale.
1 change: 1 addition & 0 deletions changelog.d/uc-capital-sale-expenses.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Value Universal Credit, Housing Benefit, Income Support, income-based JSA, income-related ESA and Pension Credit capital at market value less 10% where a sale would incur expenses and less any debt secured on the asset, as UC Regs 2013 reg. 49(1) and its legacy equivalents require. The 10% applies to land, property, directly held shares and all of a `corporate_wealth` that the dataset does not itemise, not to cash savings. Unitemised `corporate_wealth` can still fold in unit trusts, ISAs and, on datasets built before private pension wealth was split out, non-defined-benefit pension wealth. Adds secured-debt inputs for other residential property, non-residential property and land, and the council tax reduction formula deducts the debt secured on land from the land on its own household route. Each programme rounds a fraction of a penny in its capital calculations as its regulations require: to the nearest penny for Universal Credit (UC Regs 2013 reg. 6(1)) and Housing Benefit, and down for the legacy benefits and Pension Credit. The model works out a Lifetime ISA's surrender value from its balance and rounds it under the same rule, and keeps explicit Lifetime ISA capital inputs and reformed valuation formulas.
2 changes: 1 addition & 1 deletion docs/book/assumptions/growthfactors.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ We derive these rates as calendar-year nominal GDP growth from the OBR's October
|-------------|------|------|------|------|------|------|------|------|------|------|
| Growth rate | 10.0% | 5.2% | 4.0% | 4.6% | 4.0% | 3.1% | 3.4% | 3.6% | 3.4% | 3.3% |

We use per capita GDP for these variables: `benunit_reported_capital`, `cash_isa`, `cash_isa_balance`, `consumer_debt`, `corporate_wealth`, `directly_held_shares`, `dividend_income`, `gross_financial_wealth`, `household_lifetime_isa_balance`, `income_not_otherwise_charged`, `individual_savings_account_dividend_income`, `lifetime_isa_balance`, `lump_sum_income`, `maintenance_income`, `miscellaneous_income`, `mortgage_capital_repayment`, `mortgage_debt`, `net_financial_wealth`, `non_residential_property_purchased`, `non_residential_property_secured_debt`, `non_residential_property_value`, `other_residential_property_secured_debt`, `owned_company_capital`, `owned_company_holding_value`, `owned_company_trade_assets`, `owned_land`, `pension_credit_reported_capital`, `pension_income`, `private_pension_wealth`, `private_transfer_income`, `property_income`, `property_rental_income`, `rent_paid_as_boarder`, `rent_paid_as_lodger`, `savings`, `spousal_maintenance_income`, `stocks_and_shares_isa`, `stocks_and_shares_isa_balance`, `sublet_income`, `uc_reported_capital`, `unit_and_investment_trusts`
We use per capita GDP for these variables: `benunit_reported_capital`, `cash_isa`, `cash_isa_balance`, `consumer_debt`, `corporate_wealth`, `directly_held_shares`, `dividend_income`, `gross_financial_wealth`, `household_lifetime_isa_balance`, `income_not_otherwise_charged`, `individual_savings_account_dividend_income`, `lifetime_isa_balance`, `lump_sum_income`, `maintenance_income`, `miscellaneous_income`, `mortgage_capital_repayment`, `mortgage_debt`, `net_financial_wealth`, `non_residential_property_purchased`, `non_residential_property_secured_debt`, `non_residential_property_value`, `other_property_value`, `other_residential_property_secured_debt`, `overseas_property_value`, `owned_company_capital`, `owned_company_holding_value`, `owned_company_trade_assets`, `owned_land`, `owned_land_secured_debt`, `pension_credit_reported_capital`, `pension_income`, `private_pension_wealth`, `private_transfer_income`, `property_income`, `property_rental_income`, `rent_paid_as_boarder`, `rent_paid_as_lodger`, `savings`, `spousal_maintenance_income`, `stocks_and_shares_isa`, `stocks_and_shares_isa_balance`, `sublet_income`, `uc_reported_capital`, `unit_and_investment_trusts`

## Capital gains

Expand Down
95 changes: 71 additions & 24 deletions docs/book/assumptions/isa-inputs-and-capital-flows.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,26 +109,72 @@ changes what the total sums or stops a person balance reading its inputs. A
household input in a situation applies only to its own year; the person
balances carry the variable-level uprating to later years.

Each means-test formula counts the claimant's and partner's cash and stocks and
shares ISA balances in their own benefit unit, through
`cash_isa_countable_capital` and `stocks_and_shares_isa_countable_capital` in
its `person_sources`, and excludes a dependant's balance, a child's junior ISA
among them. The formulas subtract a household's counted balances from `cash_isa`
and `share_like_capital` before they allocate the remainder between benefit
units. Where the balances sum to less than the total the model holds for the
year, the remainder stays in the pool. Where their stored sum exceeds the total,
the model scales them to sum to the total exactly: it rounds each proportional
share down to a whole step of the total's float32 spacing and gives the steps
left over, one each, to the members whose shares lost most in rounding. The pool
then keeps nothing of that total; for totals under £268 million, each holding
passes a capital limit only where its proportional share does; and a sole holder
whose balance reaches the total counts exactly the total. For stocks and shares
ISAs the model takes the smaller of `stocks_and_shares_isa` and
`share_like_capital` as the total. Data that store only household totals hold no
balances, so the pool keeps the whole total. The formulas count a balance only
while the programme's `sources` lists the household source that includes it, so
a reform that drops `cash_isa` or `share_like_capital` from `sources` drops the
balances with it. For a Universal Credit unit that reports its capital
Each of the six DWP capital assessments (Universal Credit, Pension Credit,
Housing Benefit, Income Support, income-based JSA and income-related ESA) counts
the claimant's and partner's cash and stocks and shares ISA balances in their
own benefit unit, through `cash_isa_countable_capital` and
`stocks_and_shares_isa_countable_capital` in its `person_sources`, and excludes
a dependant's balance, a child's junior ISA among them. Council Tax Reduction
uses these valuations only through its Universal Credit and Pension Credit
routes; its own household route counts neither ISAs nor share-like capital.
The formulas subtract a household's counted balances from `cash_isa`
and from the part of `share_like_capital` that holds the household's stocks and
shares ISAs before they allocate the remainder between benefit units, and value
each balance as they value that part. The part is
`share_like_capital_without_sale_expenses`, counted at face value, while
`gov.dwp.share_like_capital.without_sale_expenses` lists `stocks_and_shares_isa`.
A reform that removes it from that list moves the ISAs into
`share_like_capital_with_sale_expenses`, so the formulas subtract the balances
from that part and count them less 10%. Where the balances sum to less than
the total the model holds for the year, the remainder stays in the pool. Where their
stored sum exceeds the total, the model scales them to sum to the total exactly:
it rounds each proportional share down to a whole step of the total's float32
spacing and gives the steps left over, one each, to the members whose shares
lost most in rounding. The pool then keeps nothing of that total; for totals
under £268 million, each holding passes a capital limit only where its
proportional share does; and a sole holder whose balance reaches the total
counts exactly the total. For stocks and shares ISAs the model takes as the
total the smallest of `stocks_and_shares_isa`, `share_like_capital` and the
holdings behind the part that holds the ISAs. Behind
`share_like_capital_without_sale_expenses` stand the listed holdings: their
float32 sum, held between nil and `share_like_capital` where the itemised
holdings sum to more than nil, and otherwise nil. The model bounds the
balances by that sum rather than by the part, which it forms by subtracting
the other part and which can round to less than `share_like_capital`'s
float32 spacing either side of the sum, so a balance the sum covers keeps its
whole value. Behind `share_like_capital_with_sale_expenses`, under a reform
that moves the ISAs there, stands `share_like_capital` less the listed
holdings, held between nil and `share_like_capital` where the itemised
holdings sum to more than nil, and otherwise all of `share_like_capital`.
The model computes that complement in float64, because the part itself
rounds the listed holdings' float32 sum and then the subtraction, and could
fall below a balance the holdings cover. For a list of two holdings each of
these holdings rounds at most once, to float32 (for the float64 complement,
unless one amount is more than 2^29 times another), and the parts' formulas
stay within `share_like_capital`'s float32 spacing of them. Where none of
`stocks_and_shares_isa`, `share_like_capital` and these holdings is missing
(NaN), the balances hold no more than the stored part, or nil where the part
is nil or less, except that where both stored parts equal the split the
parts' own formulas give from `share_like_capital` and the itemised
holdings, the model lets them hold up to that spacing more; where that split
falls further short, the stored part bounds the balances. With all three
present, where a direct input, or a replaced or neutralised formula of
either part, makes either stored part differ from that split, the stored
part bounds the balances wherever it falls short of the holdings, however
little, so the pool never counts less than nil of a stored part of nil or
more. A missing (NaN) stored part that holds the ISAs never replaces the
holdings as a bound on the balances. A missing `stocks_and_shares_isa` or
`share_like_capital` makes the overall bound missing, so finite balances of
nil or more pass through unchanged. Inputs or formulas that give exactly the
formulas' values leave every result as the formulas give it. Negative
holdings beside the ISAs, itemised holdings that sum to nil or less, or a
reform can leave these holdings short of the ISAs; the balances then share
what the holdings hold. Data that store only household totals hold no
balances, so the pool keeps the whole total.
The formulas count a balance only while the programme's `sources` lists the
household source that includes it, so a reform that drops `cash_isa`, or the
share-like part that holds the ISAs, from `sources` drops the balances with it.
For a Universal Credit unit that reports its capital
(`benunit_reported_capital` or `uc_reported_capital`, zero or more), the formula
leaves the unit's claimant's and partner's ISAs in the pool and subtracts the
report, as it does for their company holdings. A nonnegative
Expand All @@ -146,10 +192,11 @@ replaces covered components rather than adding them again.
For example, £5,000 savings and a £3,000 ordinary cash ISA give £8,000 UC
capital. [UC regulation 72](https://www.legislation.gov.uk/uksi/2013/376/regulation/72)
then gives eight £4.35 monthly tariff units, or £34.80 a month. Stocks-and-shares
ISA holdings remain within `share_like_capital`. The separate existing
`lifetime_isa_countable_capital` valuation is unchanged. It does not gain
transaction-level first-home or terminal-illness valuation from the new flow
inputs.
ISA holdings remain within `share_like_capital`, in its part without sale
expenses, which the six DWP capital assessments count at withdrawal value. The
separate existing `lifetime_isa_countable_capital` valuation is unchanged. It does not
gain transaction-level first-home or terminal-illness valuation from the new
flow inputs.

Population estimates depend on the input balances, reported-capital
overrides, benefit take-up and calibrated weights as well as the capital
Expand Down
Loading
Loading