public function getInterestRateForInstallment($installments)
    {
        $interestRate = $this->getInterestRate();
        $computationInstallments = ($installments - 1);
        $totalInterestRate = (float) pow($interestRate, $computationInstallments);
        return $totalInterestRate;
    }
public function getInterestRateForInstallment($installments)
    {
        $interestRate = $this->getInterestRate();
        $computationInstallments = ($installments - 1);
        $totalInterestRate = (float) pow($interestRate, $computationInstallments);
        return $totalInterestRate;
    }
public function getInterestRateForInstallment ( $ installments ) { $ interestRate = $ this -> getInterestRate ( ) ; $ computationInstallments = ( $ installments - 1 ) ; $ totalInterestRate = ( float ) pow ( $ interestRate , $ computationInstallments ) ; return $ totalInterestRate ; }
Given a number of installments, returns the total interest rate do be applied
@param int $installments
@return float
Given a number of installments returns the total interest rate do be applied