Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Model the 2025 Canada Workers Benefit secondary-earner exemption

Abierto
#554 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

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

Línea de trabajo

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.

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

Descripción

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

Lenguaje dominante
Python
Estrellas
17
Forks
35
Métricas de merge de PR
Sin PR fusionados en 30 d

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

Todos los issues de PolicyEngine/policyengine-canada

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.