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

未关闭
#2,947 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
data

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
53
派生
34
平均合并
3 天 7 小时
30 天内合并 PR
100

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PolicyEngine/policyengine-uk 的其他 Issue

查看 PolicyEngine/policyengine-uk 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。