Fix Scottish top rate threshold to use correct above-PA value#1488
Merged
vahid-ahmadi merged 3 commits intomainfrom Jan 21, 2026
Merged
Fix Scottish top rate threshold to use correct above-PA value#1488vahid-ahmadi merged 3 commits intomainfrom
vahid-ahmadi merged 3 commits intomainfrom
Conversation
The Scottish top rate (48%) threshold was incorrectly stored as £125,140 (the total income threshold) instead of £112,570 (the amount above personal allowance). PolicyEngine stores income tax thresholds as amounts ABOVE the personal allowance (£12,570), not as total income. The correct calculation is: - Total income threshold: £125,140 - Above PA: £125,140 - £12,570 = £112,570 This bug caused the top rate to effectively start at £137,710 total income instead of £125,140, significantly underestimating the number of top rate taxpayers and the revenue from threshold freezes. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Scottish Fiscal Commission January 2026 reference to rates.yaml - Add two unit tests for Scottish top rate threshold verification - Remove currency symbols from changelog entry for consistency Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Details
PolicyEngine stores income tax thresholds as amounts above the personal allowance (£12,570), not as total income. The Scottish top rate threshold was incorrectly set to:
The correct calculation:
Impact
This bug caused:
Test plan
🤖 Generated with Claude Code