Skip to content

Commit

Permalink
Merge branch 'remove-unused-code-from-self-assessment-penalties-calcu…
Browse files Browse the repository at this point in the history
…lator'

Commit 085d4c5 removed the use of these
methods.
  • Loading branch information
chrisroos committed Jun 17, 2015
2 parents 71ed552 + 4f096dc commit 8faf74c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
20 changes: 0 additions & 20 deletions lib/smart_answer/calculators/self_assessment_penalties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ def late_payment_penalty
end
end

def penalty_interest(penalty_date)
if payment_date > (penalty_date + 30)
calculate_interest(late_payment_penalty_part, payment_date - (penalty_date + 30))
else
0
end
end

private
def overdue_filing_days
(filing_date - filing_deadline).to_i
Expand All @@ -109,18 +101,6 @@ def payment_deadline
dates[:payment_deadline][tax_year.to_sym]
end

def penalty1date
dates[:penalty1date][tax_year.to_sym]
end

def penalty2date
dates[:penalty2date][tax_year.to_sym]
end

def penalty3date
dates[:penalty3date][tax_year.to_sym]
end

#interest is 3% per annum
def calculate_interest(amount, number_of_days)
(amount * (0.03 / 365) * (number_of_days - 1)).round(10)
Expand Down
2 changes: 1 addition & 1 deletion test/data/estimate-self-assessment-penalties-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ lib/smart_answer_flows/estimate-self-assessment-penalties.rb: fe4648c896af9e8f74
lib/smart_answer_flows/locales/en/estimate-self-assessment-penalties.yml: 8aa810f78f3b29a6f3996d7e11aef275
test/data/estimate-self-assessment-penalties-questions-and-responses.yml: 186d93854ea5dc9321408e14dcc8d61f
test/data/estimate-self-assessment-penalties-responses-and-expected-results.yml: 07a0cd26b8c5e4b1fff6dfe51c20142e
lib/smart_answer/calculators/self_assessment_penalties.rb: e8848a09fbfd04e3eb3ca74956c962ba
lib/smart_answer/calculators/self_assessment_penalties.rb: 194f3f08f7430a27011e0f9466b3003c

0 comments on commit 8faf74c

Please sign in to comment.