Skip to content

Commit d1624a6

Browse files
vahid-ahmadiMaxGhenisclaude
authored
Use pension_contributions (employee + personal) and update formula (#1410)
- Changed from employee_pension_contributions to pension_contributions which includes both employee and personal pension contributions - Updated formula to actually subtract pension contributions - Aligns with HBAI methodology Fixes #1411 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Max Ghenis <mghenis@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent c4fdd30 commit d1624a6

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

policyengine_uk/variables/household/income/household_net_income.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ class household_net_income(Variable):
1616
]
1717
subtracts = [
1818
"household_tax",
19-
"employee_pension_contributions",
19+
"pension_contributions",
2020
]
2121

2222
def formula(household, period, parameters):
2323
market_income = household("household_market_income", period)
2424
benefits = household("household_benefits", period)
2525
tax = household("household_tax", period)
26-
return np.round(market_income + benefits - tax)
26+
pension_contributions = add(
27+
household, period, ["pension_contributions"]
28+
)
29+
return np.round(market_income + benefits - tax - pension_contributions)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)