Skip to content

Commit

Permalink
multiply before rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
Spine authored and itismadness committed Oct 4, 2021
1 parent 75a04ea commit 2f65f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Manager/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function monthlyPercent(\Gazelle\Manager\Donation $donorMan): int {
$monthlyRental = $this->monthlyRental();
return $monthlyRental == 0.0
? 100
: min(100, (int)($donorMan->totalMonth(1) / $monthlyRental) * 100);
: min(100, (int)(($donorMan->totalMonth(1) / $monthlyRental) * 100));
}

public function due(): array {
Expand Down

0 comments on commit 2f65f20

Please sign in to comment.