Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .coverage.baseline
Binary file not shown.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which issue do we address if we are changing the Maryland TANF files?

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
changed:
- Replaced employment_income with irs_employment_income in earned_income.
4 changes: 2 additions & 2 deletions policyengine_us/variables/gov/irs/income/adjusted_earnings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from policyengine_us.model_api import *


class adjusted_earnings(Variable):
class irs_adjusted_earnings(Variable):
value_type = float
entity = Person
definition_period = YEAR
Expand All @@ -15,4 +15,4 @@ def formula(person, period, parameters):
* misc.employer_share
* person("self_employment_tax", period)
)
return max_(0, person("earned_income", period) - adjustment)
return max_(0, person("irs_earned_income", period) - adjustment)
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from policyengine_us.model_api import *


class earned_income(Variable):
class irs_earned_income(Variable):
value_type = float
entity = Person
label = "Earned income"
unit = USD
documentation = "Income from wages or self-employment"
definition_period = YEAR

adds = ["employment_income", "self_employment_income"]
adds = ["irs_employment_income", "self_employment_income"]
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from policyengine_us.model_api import *


class tax_unit_earned_income(Variable):
class tax_unit_irs_earned_income(Variable):
value_type = float
entity = TaxUnit
label = "Tax unit earned income"
unit = USD
definition_period = YEAR

formula = sum_among_non_dependents("earned_income")
formula = sum_among_non_dependents("irs_earned_income")
Loading