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 32 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
334145a
Chapter 7 bankruptcy means test
hua7450 Nov 12, 2024
c6e4343
add parameters
hua7450 Nov 18, 2024
f17b3a8
upstream master
hua7450 Nov 18, 2024
497b3ad
Chapter 7 bankruptcy means test
hua7450 Nov 19, 2024
88eb9cd
minor
hua7450 Nov 19, 2024
3f0973f
draft
hua7450 Nov 21, 2024
3b7ec64
Chapter 7 bankruptcy means test
hua7450 Nov 25, 2024
52ca648
minor
hua7450 Nov 25, 2024
877ec8c
draft
hua7450 Dec 3, 2024
2aebdef
upstream master
hua7450 Dec 3, 2024
be7f70b
adjust description, add formula
hua7450 Dec 4, 2024
9c2dbdf
format
hua7450 Dec 4, 2024
fefb69d
undo some formattings
hua7450 Dec 4, 2024
6c19cef
minor change
hua7450 Dec 5, 2024
58aed6a
upstream master
hua7450 Dec 5, 2024
02713d7
add test cases
hua7450 Dec 5, 2024
4ce7947
move county and region folder to houshold/demo/geo
hua7450 Dec 6, 2024
699bcb3
move folder, add formula, parameters, and tests
hua7450 Dec 9, 2024
0c34830
upstream master
hua7450 Dec 9, 2024
437dce8
fix regions formula and add test cases
hua7450 Dec 9, 2024
bef0e8f
adjustment on parameters
hua7450 Dec 12, 2024
2c52eec
fix the error of county_region. make format
hua7450 Dec 19, 2024
d42c1cc
upstream master
hua7450 Dec 19, 2024
ba25732
add test files
hua7450 Dec 20, 2024
bd36b43
add test cases and fix formula
hua7450 Dec 27, 2024
6334972
upstream master
hua7450 Dec 27, 2024
97b36d6
minor change
hua7450 Dec 27, 2024
0e0d1eb
minor
hua7450 Dec 27, 2024
24f940b
format
hua7450 Dec 28, 2024
95da2f2
make format
hua7450 Dec 28, 2024
b5f0947
upstream master
hua7450 Dec 28, 2024
df612b9
apply clip() function
hua7450 Dec 28, 2024
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