diff --git a/app/Library/MoonCalc.php b/app/Library/MoonCalc.php index 7341eec19..df8732e78 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -68,7 +68,7 @@ class MoonCalc { //Calculate the total to price to be mined in one month $totalPriceMined = $firstTotal + $secondTotal + $thirdTotal + $fourthTotal; //Calculate the rental price. Refined rate is already included in the price from rental composition - $rentalPrice = $totalPriceMined * ($config->RentalTax / 100.00); + $rentalPrice = $totalPriceMined * ($config[0]->RentalTax / 100.00); //Format the rental price to the appropriate number $rentalPrice = number_format($rentalPrice, "2", ".", ",");