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

Abierto
#2,947 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
53
Forks
34
Merge medio
3 d 7 h
PR fusionados (30 d)
100

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PolicyEngine/policyengine-uk

Todos los issues de PolicyEngine/policyengine-uk

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.