public function getTotalAmountAfterInterest($installments)
    {
        $return = $amount = $this->getPaymentAmount();

        if ($this->isApplyInterest($installments)) {
            $return = ($amount) * $this->getInterestRateForInstallment($installments);
        }

        return $return;
    }
public function getTotalAmountAfterInterest($installments)
    {
        $return = $amount = $this->getPaymentAmount();

        if ($this->isApplyInterest($installments)) {
            $return = ($amount) * $this->getInterestRateForInstallment($installments);
        }

        return $return;
    }
public function getTotalAmountAfterInterest ( $ installments ) { $ return = $ amount = $ this -> getPaymentAmount ( ) ; if ( $ this -> isApplyInterest ( $ installments ) ) { $ return = ( $ amount ) * $ this -> getInterestRateForInstallment ( $ installments ) ; } return $ return ; }
Computes the maximum amount after interest is applied
@param int $installments
@return float
Computes the maximum amount after interest is applied