Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 7 bankruptcy means test #5323

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Chapter 7 bankruptcy means test.
1 change: 1 addition & 0 deletions policyengine_us/parameters/gov/bankruptcy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Chapter 7 Bankruptcy Means Test
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Additonal amount for each person increase.
hua7450 marked this conversation as resolved.
Show resolved Hide resolved

values:
2024-01-01: 386
hua7450 marked this conversation as resolved.
Show resolved Hide resolved

metadata:
unit: currency-USD
period: year
label:
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: National standards -- Food, clothing and other items
href: https://www.irs.gov/businesses/small-businesses-self-employed/national-standards-food-clothing-and-other-items
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
description: Base amount

values:
1:
2024-01-01: 808
2:
2024-01-01: 1_411
3:
2024-01-01: 1_677
4:
2024-01-01: 2_027

metadata:
unit: currency-USD
period: year
label:
breakdown:
- list(range(1,4))
reference:
- title: National standards -- Food, clothing and other items
href: https://www.irs.gov/businesses/small-businesses-self-employed/national-standards-food-clothing-and-other-items

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description:

values:
2024-01-01: 65

metadata:
unit: age
period: year
label:
reference:
- title: National standards -- Out-of-pocket health care
href: https://www.irs.gov/businesses/small-businesses-self-employed/national-standards-out-of-pocket-health-care
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description:

values:
2024-01-01: 158

metadata:
unit: currency-USD
period: year
label:
reference:
- title: National standards -- Out-of-pocket health care
href: https://www.irs.gov/businesses/small-businesses-self-employed/national-standards-out-of-pocket-health-care
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description:

values:
2024-01-01: 83

metadata:
unit: currency-USD
period: year
label:
reference:
- title: National standards -- Out-of-pocket health care
href: https://www.irs.gov/businesses/small-businesses-self-employed/national-standards-out-of-pocket-health-care
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Line 25 ok
#Line 26 not sure
#Line 27,28,29,30 skip?
#Line 31 not sure
#Line 32 sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Line 33,34,35,36 ???
# Line 37 sum
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Housing and utilities + vehicle operation (owned or lease, public transportation)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# get household size
# food_clothing_and_other + out_of_pocket_health_care
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Line 16 ok
#Line 17, 18, 19 skip??
#Line 20,21,22 ok
#Line 23 skip?
#Line 24 sum
hua7450 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from policyengine_us.model_api import *


class total_deductions(Variable):
value_type = float
entity = SPMUnit
label = "Total deductions from Income"
unit = USD
definition_period = YEAR

adds = ["national_standards_deductions","local_standards_deductions",
"other_necessary_expenses_deductions","additional_expense_deductions",
"debt_payment_deductions","additional_expense_deductions"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This folder contains all the new variables created for this program.
Loading