Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Model the 2025 Canada Workers Benefit secondary-earner exemption

Aperta
#554 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start by locating the existing general Canada Workers Benefit implementation referenced by issue #9 and read the CRA Schedule 6 Step 2 source linked in this issue. Trace the AFNI and reduction calculations, then add coverage for the standard, Alberta, Quebec, and Nunavut schedules; done means the exemption selects the lower earner and respects all stated caps without producing zero for an eligible spouse.

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

Descrizione

enhancement

Problem

PolicyEngine Canada does not model the secondary-earner exemption used in the
2025 Canada Workers Benefit calculation. A repository search for
secondary_earner and equivalent terms returns no implementation.

CRA Schedule 6 Step 2 allows an eligible-spouse family to deduct up to $16,386
of the lower earner's qualifying amount from adjusted family net income. Without
this step, the final CWB amount is not comparable to the 2025 CRA calculation.

The older general CWB implementation issue was #9.

Scope

  • Add the 2025 secondary-earner exemption parameter.
  • Identify the secondary earner from claimant and eligible-spouse working
    income.
  • Cap the exemption by the secondary earner's working income, adjusted net
    income, and the published maximum.
  • Subtract the exemption from adjusted family net income before applying the
    basic CWB and disability-supplement reductions.
  • Preserve an explicit pre-exemption AFNI variable or otherwise expose both
    legal calculation boundaries.

Acceptance criteria

  • No eligible spouse produces a zero exemption.
  • The lower earner is selected correctly when claimant and spouse incomes
    differ.
  • The exemption respects the working-income, adjusted-net-income, and $16,386
    caps.
  • End-to-end tests cover the standard schedule and the Alberta, Quebec, and
    Nunavut variants.

Official source:
https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5000-s6/5000-s6-25e.pdf

Lingua principale
Python
Stelle
17
Fork
35
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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-canada

Tutte le issue di PolicyEngine/policyengine-canada

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.