Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,22 @@
members: person
output:
uc_housing_costs_element: 5_000 - 10 * 52

- name: Rented privately, non-dependent deductions exceed housing costs
period: 2022
absolute_error_margin: 0
input:
people:
person: {}
benunits:
benunit:
benunit_rent: 1_000
uc_non_dep_deductions: 2_000
LHA_cap: 5_000
members: person
households:
household:
tenure_type: RENT_PRIVATELY
members: person
output:
uc_housing_costs_element: 0
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ def formula(benunit, period, parameters):
default=0,
)
non_dependent_deductions = benunit("uc_non_dep_deductions", period)
return max_housing_costs - non_dependent_deductions
return max_(max_housing_costs - non_dependent_deductions, 0)