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

オープン
#2,947 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
100

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PolicyEngine/policyengine-uk のほかの issue

PolicyEngine/policyengine-uk の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。