Say when the employer unemployment-tax total is an estimate, and keep the no-worker regression in its New Jersey test

Abierto Apto para principiantes
#11,653 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python, yaml

Línea de trabajo

Lee employer_total_state_unemployment_tax.py y nj_employer_state_unemployment_tax.yaml, especialmente el caso sin trabajadores alrededor de la fila de fixture referenciada. Actualiza la redacción de la estimación y restaura la entrada de salarios brutos del empleador, conservando la expectativa indicada; añade el caso de reforma con una tasa de cero y aclara el cambio de tasa de julio en el título del caso. El trabajo estará completo cuando la documentación describa ambas condiciones de la estimación y los casos de New Jersey detecten la fórmula antigua y cubran la ruta de llamada.

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

Descripción

Agent-written for Max, by Claude Code for Max Ghenis.

The last review of #10700 approved it at 8c92c28b and left two follow-ups.

1. Documentation

employer_total_state_unemployment_tax applies one worker's effective rate to the employer's taxable wages. Its documentation says the total is an estimate when workers' wages differ (variable). It is also an estimate when worker wages are missing and the rate changes during the year, even for one worker.

In New Jersey in 2022, one worker paid $100,000 evenly owes $1,067.635: $25,000 taxed in Q1 and $14,800 in Q2 at 2.6825%. With worker wages left out, the total uses the average of the four quarterly rates, 2.8325%, and gives $1,127.335 on $39,800.

Proposed: say the total is an estimate whenever the rate changes during the year and the worker profile is missing or unrepresentative.

2. Test

In nj_employer_state_unemployment_tax.yaml, the no-worker row leaves out the $100,000 employer gross wages that the case had before (fixture). Without that input, the old and new formulas both give $1,127.335, so the row cannot catch a return to the old formula.

Proposed:

  • Restore employer_total_payroll_tax_gross_wages: 100_000 in that row and keep the $1,127.335 expectation; the old formula gave $1,067.635.
  • Add a reform that sets the effective rate to zero, to test the caller path next to the supplied-zero case.
  • Name the July rate change in the case title: the $60,000 row taxes $9,800 in Q3 at the higher rate.
Lenguaje dominante
Python
Estrellas
178
Forks
224
Merge medio
3 d 13 h
PR fusionados (30 d)
309

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

Todos los issues de PolicyEngine/policyengine-us

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.