Simulate contributory (New Style) JSA instead of reading reported amounts only

Aperta
#2,947 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

Start with variables/gov/dwp/jsa_contrib.py, which currently only sums jsa_contrib_reported, and the gov.dwp.JSA.contrib parameters for the age rates and disregards. Check JSA/eligibility/min_age.yaml, which applies to income-based JSA only. Done means a simulated contributory JSA amount, with reported amounts still used when present, and tests showing a claimant who loses their job receives it. The contribution-condition approximations and take-up need maintainer guidance before implementation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Contributory (New Style) JSA is reported-only: jsa_contrib just adds jsa_contrib_reported (variables/gov/dwp/jsa_contrib.py). Someone who loses their job in a reform or scenario therefore never gets it. The rate parameters exist (gov.dwp.JSA.contrib.amount_18_24, amount_over_25, earn_disregard, pension_disregard), but no formula reads them.

This came up from an external user modelling displaced workers, who had to add New Style JSA by hand.

A simulated version could cover:

  • Contribution conditions, approximated from earnings: Class 1 paid on 26 × LEL in one of the last two tax years, and paid or credited on 50 × LEL in each.
  • Duration: 182 days.
  • Rate: the age-based rates.
  • Deductions: earnings (over earn_disregard) and occupational or personal pensions (over £50 a week, pension_disregard).
  • Take-up.

Downstream it already works if the amount lands in jsa_contrib_reported. That feeds UC unearned income, CTR, HB, the benefit cap and social_security_income for income tax.

Also: JSA/eligibility/min_age.yaml is for income-based JSA. There is no contributory minimum age.

Drafted with AI assistance and checked against main at 70014b3.

Lingua principale
Python
Stelle
53
Fork
34
Merge medio
3g 7h
PR unite (30g)
100

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PolicyEngine/policyengine-uk

Tutte le issue di PolicyEngine/policyengine-uk

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.