(12C) Annualised Equivalent Rate & Continuously Compounded Rate
|
06-11-2019, 03:30 PM
Post: #1
|
|||
|
|||
(12C) Annualised Equivalent Rate & Continuously Compounded Rate
Often the interest rate given is the nominal rate that compounds a given number of times in the year. I want a very quick way to calculate the annualised equivalent rate (AER) which is the same rate that compounds only once a year (often this is what banks quote as regulatory authorities mandate them to as the public understand 8.3% AER versus 8% APR compounded, say, monthly during the year. Also options and some other derivatives use the continuously compounded rate CCR (the asymptotic limit going from compounding once a year to monthly, to weekly, to daily, to hourly etc.). So the program will also calculate this also. I want to avoid using other registers, if possible, so it's a bit longer than necessary (e.g. the 100's being entered below!) as I don't want it to disturb a cashflow sequence entered into the calculator. {I'm intending to attempt the CFA exams and anything that adds to speed is a good :-) Can't figure out how to post smiley's to this! :-( }
The other permitted calculator (TI BA II Plus) has a sheet to do this but the HP12C will have significantly lower keystrokes as only have to input n (number of compounding periods per year) and i (the nominal rate) and then R/S. TI doesn't calculate the CCR on that sheet. AER is output to X and CCR to Y. For example (rounded to 2 decimal places): i = 8% APR compounded monthly AER = 8.30% CCR = 8.33% Let me know if you spot any problems in it. Regards, Joe Code:
|
|||
06-11-2019, 06:32 PM
Post: #2
|
|||
|
|||
RE: (12C) Annualised Equivalent Rate & Continuously Compounded Rate
Hi Joe,
(06-11-2019 03:30 PM)Joe_H Wrote: Let me know if you spot any problems in it. I don't see a problem with you program but I do see an opportunity to reduce the amount of programming lines in your code. You can replace the two 100's by pressing [ EEX ] 2. This will put a 100 in the X-Register using only 2 keystrokes. (06-11-2019 03:30 PM)Joe_H Wrote: Can't figure out how to post smiley's to this! :-( } You can type a smiley by pressing colon and right parentheses. Omit the hyphen. See . Lastly, I see you are a new member here. So, welcome to the HP Museum! |
|||
06-11-2019, 10:42 PM
Post: #3
|
|||
|
|||
RE: (12C) Annualised Equivalent Rate & Continuously Compounded Rate
Carsen,
Thanks for the welcome and the tips. I'm working on a few more programs coming (all finance related). Yes, the EEX 2 is a handy shortcut to save two memory locations. Wasn't sure if there is a maths trick to convert decimal to percentage. Joe |
|||
06-12-2019, 03:20 PM
Post: #4
|
|||
|
|||
RE: (12C) Annualised Equivalent Rate & Continuously Compounded Rate
An extract from:
Derivatives Demystified: A Step-by-Step Guide to Forwards, Futures, Swaps and Options, Second Edition By Andrew M. Chisholm © 2010 John Wiley & Sons, Ltd. page 217 The … annual equivalent rate (AER) or the effective annual rate … measures the rate expressed with annual compounding that is equivalent to a rate expressed with interest compounded at more frequent intervals, such as twice a year. For example, a rate of 10% p.a. with semi-annual compounding is equivalent to 10.25% p.a. expressed with annual compounding (i.e. the AER is 10.25% p.a.). page 218 AER formula The formula for calculating the AER when interest is compounded m times per annum is as follows: [attachment=7370] For example, a nominal rate of 10% p.a. with semi-annual compounding is equivalent to 10.25% p.a. with annual compounding. [attachment=7371] BEST! SlideRule |
|||
06-12-2019, 04:37 PM
Post: #5
|
|||
|
|||
RE: (12C) Annualised Equivalent Rate & Continuously Compounded Rate
Sliderule
Yes your posts adds clarity for others coming here on what the difference is between AER (also called the effective rate) and APR (also called the nominal rate). However, I'm going to change the program and split it into two separate programs: one for APR<->AER and one for i (either APR or AER) <-> CCR. The reason for this is that I thought about the AER/APR can go either way. For example, if we had an bank that compounded once a year at 5% and we wanted to compare it to a 90 day investment that returned 1.25%, we have to go back to the nominal rate (APR) so we need AER -> APR and not the other way round. In this case for AER of 5% APR is 4.91% and a quarterly interest would be 1.23% lower than the alternative investment. Similarly, if the AER is given and we need the CCR for options pricing etc. it is also the opposite conversion. In order to avoid using registers to store values (could mess up other cashflows in the calculator etc.) and to speed access to results for either of these programs X will be AER (assuming i=APR) and Y will be APR (assuming i=AER) for the periodically compounded program and in the CCR program X will be CCR (assuming i=APR) and Y will be CCR (assuming i=AER). I'll post them up here later today when I have them written and tested. Joe |
|||
06-13-2019, 03:22 PM
Post: #6
|
|||
|
|||
RE: (12C) Annualised Equivalent Rate & Continuously Compounded Rate
I have completed this program. Thinking about it further and to avoid confusion everything is in one program now with a selection option as there are effectively 3 options:
{using APR(nominal rate)=i, AER(effective rate)=i* and CCR(continuous comp. rate)=i**} 0 - i -> i* & i** 1 - i* -> i & i** 2 - i** -> i & i* Option 2 is unlikely as I don't think it is often given that way but it completes the conversions there could be. To use it put values into n and i and type 0, 1 or 2 followed by R/S. The output convention is that X will have the lowest * and Y the higher. Output is in percent form for convenience. It stores i in decimal form in R0 which also can be useful. R1 is also used. Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)