Skip to content
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

Update late payment interest rate #6866

Merged
merged 1 commit into from
Aug 20, 2024
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
3 changes: 2 additions & 1 deletion lib/smart_answer/calculators/self_assessment_penalties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class SelfAssessmentPenalties < OpenStruct
{ start_date: "2023-04-13", end_date: "2023-05-30", value: 0.0675 },
{ start_date: "2023-05-31", end_date: "2023-07-10", value: 0.07 },
{ start_date: "2023-07-11", end_date: "2023-08-21", value: 0.075 },
{ start_date: "2023-08-22", end_date: "2100-04-04", value: 0.0775 },
{ start_date: "2023-08-22", end_date: "2024-08-19", value: 0.0775 },
{ start_date: "2024-08-20", end_date: "2100-04-04", value: 0.075 },
].freeze

def tax_year_range
Expand Down
12 changes: 6 additions & 6 deletions test/unit/calculators/self_assessment_penalties_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ def setup
assert_equal 5695, @calculator.total_owed
@calculator.payment_date = Date.parse("2025-02-03")
assert_equal 750, @calculator.late_payment_penalty
assert_equal 6140, @calculator.total_owed
assert_equal 6134, @calculator.total_owed
@calculator.payment_date = Date.parse("2025-08-03")
assert_equal 750, @calculator.late_payment_penalty
assert_equal 6332, @calculator.total_owed
assert_equal 6320, @calculator.total_owed
end

context "HMRC Covid-19 Extension to 1 April for 2019-20" do
Expand Down Expand Up @@ -443,10 +443,10 @@ def setup
end

context "late payment interest rates" do
should "after May 31st, the user should have a late payment penalty of 7.75%" do
@calculator.payment_date = Date.parse("2024-06-1")
assert_equal 250, @calculator.late_payment_penalty
assert_equal 128.46, @calculator.interest.to_f
should "user should have a late payment penalty of 7.5% after August 19th 2024" do
@calculator.payment_date = Date.parse("2024-08-20")
assert_equal 500, @calculator.late_payment_penalty
assert_equal 213.39, @calculator.interest.to_f
end
end
end
Expand Down
Loading