Finance[EquivalentRate] - calculate equivalent interest rate
|
Calling Sequence
|
|
EquivalentRate(rate, old, new, interval)
EquivalentRate(rate, old, new, startdate, enddate, opts)
|
|
Parameters
|
|
rate
|
-
|
positive constant, list or Vector; given interest rate
|
old
|
-
|
Annual, Bimonthly, Continuous, EveryFourthMonth, Monthly, Quarterly, Semiannual, Simple, SimpleThenAnnual, SimpleThenBimonthly, SimpleThenEveryFourthMonth, SimpleThenMonthly, SimpleThenQuarterly, or SimpleThenSemiannual; compounding type for the original interest rate
|
new
|
-
|
Annual, Bimonthly, Continuous, EveryFourthMonth, Monthly, Quarterly, Semiannual, Simple, SimpleThenAnnual, SimpleThenBimonthly, SimpleThenEveryFourthMonth, SimpleThenMonthly, SimpleThenQuarterly, or SimpleThenSemiannual; compounding type for the desired interest rate
|
interval
|
-
|
non-negative constant, list(non-negative), or Vector; duration of the compounding interval in years
|
startdate
|
-
|
a string containing a date specification in a format recognized by ParseDate or a date data structure; start of the compounding interval
|
enddate
|
-
|
a string containing a date specification in a format recognized by ParseDate or a date data structure; end of the compounding interval
|
opts
|
-
|
equation of the form option = value where option is daycounter; specify options for the EquivalentRate command
|
|
|
|
|
Description
|
|
•
|
The EquivalentRate command calculates an equivalent rate for the specified compounding interval and compounding type. The parameter rate is the original rate. It must be a positive constant. The old and new parameters are the original compounding type and the new compounding type respectively. The parameter interval is the duration of the compounding period. Alternatively, one can specify the beginning and the end of the compounding period as dates.
|
•
|
The optional parameter interval can be used to specify the length of the compounding interval in years. This parameter is relevant only when the conversion involves simple compounding.
|
|
|
Options
|
|
•
|
daycounter = Actual360, Actual365Fixed, AFB, Bond, Euro, Historical, ISDA, ISMA, OneDay, Simple, Thirty360BondBasis, Thirty360EuroBondBasis, Thirty360European, Thirty360Italian, Thirty360USA, or a day counter data structure -- This option specifies the convention used to convert the amount of time between two dates to year fractions.
|
|
|
Compatibility
|
|
•
|
The Finance[EquivalentRate] command was introduced in Maple 15.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
>
|
|
| (4) |
This is an example of converting from/to simple compounding.
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
Here are more conversions.
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
|
|
References
|
|
|
Brigo, D., Mercurio, F., Interest Rate Models: Theory and Practice. New York: Springer-Verlag, 2001.
|
|
Hull, J., Options, Futures, and Other Derivatives, 5th. edition. Upper Saddle River, New Jersey: Prentice Hall, 2003.
|
|
Kellison, S.G., Theory of Interest, 2nd edition, Irwin: McGraw-Hill, 1991.
|
|
|