-
Couldn't load subscription status.
- Fork 30
Refactor #416
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
Refactor #416
Changes from all commits
44132ab
31e2cb1
ee979ce
9dc6987
ed65c50
a94a70a
6fb9d00
ce355b4
d1d21c4
c3958d4
937b614
64121bd
3d0b00d
b29e0b8
9cf07d8
6da5f0b
f55a761
0d00a27
da22d30
d285009
1cda71f
de8fd82
2f1522e
bd9e71a
a592c41
9e775de
b63d170
e342732
a744be5
d09ad5c
2d96a6e
09c07f6
31366fe
8b8b7d6
cee34af
63959f3
60dc034
ecaee0c
af2568b
f89a526
59c069b
78595bc
c1f1bc4
9b12c01
979e596
a7207bd
ae5f689
ee0ba68
f6b4648
7bc61b6
73e6059
cc4ccb5
bc2e7dd
59a796d
f3a618b
c8c2602
a4fc5ae
03915a9
0fe34a3
ebf49a5
4304c65
9fb0698
1bb2086
72f0304
83e5f47
5a2e1cc
ce257dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| - name: Basic rate band is eligible for Marriage Allowance | ||
| period: 2021 | ||
| input: | ||
| tax_band: BASIC | ||
| output: | ||
| meets_marriage_allowance_income_conditions: true | ||
|
|
||
| - name: Higher rate band is ineligible for Marriage Allowance | ||
| period: 2021 | ||
| input: | ||
| tax_band: HIGHER | ||
| output: | ||
| meets_marriage_allowance_income_conditions: false | ||
|
|
||
| - name: Additional rate band is ineligible for Marriage Allowance | ||
| period: 2021 | ||
| input: | ||
| tax_band: ADDITIONAL | ||
| output: | ||
| meets_marriage_allowance_income_conditions: false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,9 +43,9 @@ class main_residential_property_purchased(Variable): | |
| unit = "currency-GBP" | ||
|
|
||
| def formula(household, period): | ||
| return household("property_purchased", period) * household( | ||
| "main_residence_value", period | ||
| ) | ||
| property_purchased = household("property_purchased", period) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have thought about this - while this is equivalent to before, I think assigning to variables like this to avoid the auto-formatted brackets mess makes the formulas more readable - will do this in future, thanks. |
||
| main_residence_value = household("main_residence_value", period) | ||
| return main_residence_value * property_purchased | ||
|
|
||
|
|
||
| class additional_residential_property_purchased(Variable): | ||
|
|
@@ -57,9 +57,11 @@ class additional_residential_property_purchased(Variable): | |
| unit = "currency-GBP" | ||
|
|
||
| def formula(household, period): | ||
| return household("property_purchased", period) * household( | ||
| property_purchased = household("property_purchased", period) | ||
| other_residential_property_value = household( | ||
| "other_residential_property_value", period | ||
| ) | ||
| return other_residential_property_value * property_purchased | ||
|
|
||
|
|
||
| class main_residential_property_purchased_is_first_home(Variable): | ||
|
|
@@ -103,9 +105,11 @@ class non_residential_property_purchased(Variable): | |
| unit = "currency-GBP" | ||
|
|
||
| def formula(household, period): | ||
| return household("property_purchased", period) * household( | ||
| property_purchased = household("property_purchased", period) | ||
| non_residential_property_value = household( | ||
| "non_residential_property_value", period | ||
| ) | ||
| return property_purchased * non_residential_property_value | ||
|
|
||
|
|
||
| class cumulative_non_residential_rent(Variable): | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.