Repository navigation
Commit 4a17ab8
committed
fix(five-hour-blocks): preserve precision in costPerHour calculations
Remove rounding of costPerHour in calculateBurnRate() to maintain precision
for downstream calculations in projectBlockUsage(). The costPerHour value
is used for calculating projectedAdditionalCost, where premature rounding
can introduce cumulative errors. Display formatting is already handled
by formatCurrency() at the presentation layer.
This change ensures accurate cost projections for active blocks while
keeping the user-facing display properly formatted.1 parent 6205adb commit 4a17ab8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
0 commit comments