- Function RateEffective(NominalRate, NumberPeriods)
RateEffective
The function RateEffective
returns the effective annual interest
rate, expressed as a fraction, on the basis of a nominal interest rate
plus the number of compounding periods per year.
RateEffective(
NominalRate, ! (input) numerical expression
NumberPeriods ! (input) numerical expression
)
Arguments
- NominalRate
The nominal annual interest rate expressed as a fraction. NominalRate must be a nonnegative decimal number.
- NumberPeriods
The number of compounding periods per year. NumberPeriods must be a positive integer.
Return Value
The function
RateEffective
returns the effective annual interest rate expressed as a fraction.
Equation
The conversion between nominal and effective rates is based on the equation
\[r_{\textit{eff}} = \left( 1 + \frac{r_{\textit{nom}}}{n} \right)^n - 1\]where \(r_{\textit{eff}}\) is the effective annual rate, \(r_{\textit{nom}}\) the nominal annual rate and \(n\) the number of compounding periods.
Note
This function can be used in an objective function or constraint, and the input parameter NominalRate can be used as a variable.
The function
RateEffective
is similar to the Excel functionEFFECT
.
Example
! Each month 1.5 % interest, corresponds to 18 % per year
! but if it accumulates, it becomes:
_p_r1 := RateEffective( 12 * 0.015 , 12 );
! 19.6 %
! Each year 4 % interest, corresponds to 40 % per decade
! but if it accumulates, it becomes:
_p_r2 := RateEffective( 10 * 0.04, 10 );
! 48 %
block where listing_number_precision := 6 ;
display _p_r1, _p_r2 ;
endblock ;
results in:
_p_r1 := 0.195618 ;
_p_r2 := 0.480244 ;
References
The function
RateNominal
.