PolicyEngine / PolicyEngine/policyengine-core

`threshold_variable` metadata field specifying the variable that parameter scale thresholds are based on

Open
#83 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
22
Forks
30
Avg merge
14h 33m
Merged PRs (30d)
7

Description

To enable this:

description: NYC provides a household credit of this fixed amount to single filers, based on recomputed federal AGI.
metadata:
  label: NYC Household Credit Fixed Amount for single filers
  type: single_amount
  threshold_unit: currency-USD
  amount_unit: currency-USD
  threshold_variable: adjusted_gross_income # PROPOSAL
  reference:
    - title: Instructions for Form IT-201
      href: https://www.tax.ny.gov/pdf/2022/printable-pdfs/inc/it201i-2022.pdf#page=17
values:
  - threshold:
      2022-01-01: 10_000
    amount:
      2022-01-01: 15
  - threshold:
      2022-01-01: 12_500
    amount:
      2022-01-01: 10
  - threshold:
      2022-01-01: 12_501
    amount:
      2022-01-01: 0

cc @leogoldman

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue shows a YAML metadata proposal for threshold_variable, but names no implementation file or test. Start by locating where metadata is parsed and parameter scale thresholds are evaluated; done should make thresholds use the declared variable and include coverage for the shown threshold-based amount example.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.