Skip to content

Commit

Permalink
SolutionV2
Browse files Browse the repository at this point in the history
  • Loading branch information
ForDeOne committed Dec 21, 2024
1 parent f5a4b6e commit c34dfb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/calculateRentalCost.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ function calculateRentalCost(days) {
let discount = 0;

if (days >= 3) {
discount += 20;
discount = 20;
}

if (days >= 7) {
discount += 30;
discount = 50;
}

sum = sum - discount;
Expand Down

0 comments on commit c34dfb0

Please sign in to comment.