Skip to content

Commit

Permalink
Make employee incidence a percentage (#964)
Browse files Browse the repository at this point in the history
* Bump UK data

* Add employee incidence parameter

* Versioning
  • Loading branch information
nikhilwoodruff authored Oct 17, 2024
1 parent 8962733 commit 5a2ce0f
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.4.0] - 2024-10-17 21:43:42

### Added

- Employee incidence percentage for employer NICs.

## [2.3.0] - 2024-10-17 10:47:06

### Changed
Expand Down Expand Up @@ -1500,6 +1506,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



[2.4.0]: https://github.com/PolicyEngine/openfisca-uk/compare/2.3.0...2.4.0
[2.3.0]: https://github.com/PolicyEngine/openfisca-uk/compare/2.2.0...2.3.0
[2.2.0]: https://github.com/PolicyEngine/openfisca-uk/compare/2.1.1...2.2.0
[2.1.1]: https://github.com/PolicyEngine/openfisca-uk/compare/2.1.0...2.1.1
Expand Down
5 changes: 5 additions & 0 deletions changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1259,3 +1259,8 @@
changed:
- UK-data bumped to 1.5.
date: 2024-10-17 10:47:06
- bump: minor
changes:
added:
- Employee incidence percentage for employer NICs.
date: 2024-10-17 21:43:42
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description: Assume that employers keep employment costs constant in response to employer NI changes.
description: Fraction of employer NI that is borne by employees. The remaining is passed onto prices.
values:
2010-01-01: true
2010-01-01: 1
metadata:
label: Employer NI employee incidence
unit: bool
unit: /1
2 changes: 1 addition & 1 deletion policyengine_uk/reforms/policyengine/budget_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class pre_budget_change_household_tax(Variable):
"expected_sdlt",
"expected_ltt",
"expected_lbtt",
"corporate_sdlt_",
"corporate_sdlt",
"business_rates",
"council_tax",
"domestic_rates",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ class employer_ni_fixed_employer_cost_change(Variable):
unit = GBP

def formula(person, period, parameters):
if not parameters(
employee_incidence = parameters(
period
).gov.contrib.policyengine.employer_ni.employee_incidence:
).gov.contrib.policyengine.employer_ni.employee_incidence
if employee_incidence == 0:
return 0
# First, calculate baseline and reformed employer NI contributions.

Expand Down Expand Up @@ -103,8 +104,12 @@ def formula(person, period, parameters):

pay_change = new_employment_income - previous_employment_income

# Apply incidence percentage

interpolated_pay_change = pay_change * employee_incidence

# Where a person's prior employment income was below the secondary threshold, the formula doesn't hold, so assume no change.

below_threshold = previous_employment_income < t_b

return where(below_threshold, 0, pay_change)
return where(below_threshold, 0, interpolated_pay_change)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="PolicyEngine-UK",
version="2.3.0",
version="2.4.0",
author="PolicyEngine",
author_email="nikhil@policyengine.org",
classifiers=[
Expand Down

0 comments on commit 5a2ce0f

Please sign in to comment.