@@ -105,8 +105,8 @@ |
||
105 | 105 | $price = $threshold->price(); |
106 | 106 | |
107 | 107 | $chargedAmount = $price->money() |
108 | - ->multiply((string)(sprintf('%.14F', $billedUsage->getQuantity()))) |
|
109 | - ->divide((string)(sprintf('%.14F', $price->multiplier()))); |
|
108 | + ->multiply((string)(sprintf('%.14F', $billedUsage->getQuantity()))) |
|
109 | + ->divide((string)(sprintf('%.14F', $price->multiplier()))); |
|
110 | 110 | |
111 | 111 | $this->calculationTraces[] = new ProgressivePriceCalculationTrace( |
112 | 112 | $threshold, $billedUsage, $chargedAmount |
@@ -154,8 +154,8 @@ |
||
154 | 154 | $chargeQuery = new ChargeDerivativeQuery(); |
155 | 155 | $chargeQuery->changeUsage( |
156 | 156 | $this->getCapInHours() |
157 | - ->multiply($coefficient) |
|
158 | - ->multiply($action->getUsageInterval()->ratioOfMonth()) |
|
157 | + ->multiply($coefficient) |
|
158 | + ->multiply($action->getUsageInterval()->ratioOfMonth()) |
|
159 | 159 | ); |
160 | 160 | $chargeQuery->changeSum($charge->getSum()->multiply($coefficient)); |
161 | 161 |