Skip to content

Commit

Permalink
Fix bug in 'one lower'
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog committed Jun 6, 2024
1 parent 4843de9 commit c02c1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function calculateOptimalCommitment() {
`Minimum Total Cost: ${currencyDisplay}${minTotalCost.toFixed(2)}`,
`Average Cost: ${currencyDisplay}${(minTotalCost / usageData.length).toFixed(2)}`,
'',
`One lower (${optimalCommitment - 1}) cost: ${currencyDisplay}${_calculateCost(discountedRate).toFixed(2)}`,
`One lower (${optimalCommitment - 1}) cost: ${currencyDisplay}${_calculateCost(optimalCommitment - 1).toFixed(2)}`,
`One higher (${optimalCommitment + 1}) cost: ${currencyDisplay}${_calculateCost(optimalCommitment + 1).toFixed(2)}`,
].join("\n");

Expand Down

0 comments on commit c02c1dd

Please sign in to comment.