allow 4 decimals for rounded rates (#3596)

This commit is contained in:
Kevin Papst
2022-10-24 16:21:57 +02:00
committed by GitHub
parent e5614b92a0
commit 8b4828f236
5 changed files with 47 additions and 17 deletions

View File

@@ -24,7 +24,7 @@ class Util
public static function calculateRate(float $hourlyRate, int $seconds): float
{
$rate = (float) ($hourlyRate * ($seconds / 3600));
$rate = round($rate, 2);
$rate = round($rate, 4);
return $rate;
}