Calculate rate in the desired frequency.
Function to calculate rate in the desired frequency.
The user inputs are as follows:
Given frequency: chosen amongst continuous/Quarterly/Semi-annual/Annual
Required frequency: chosen amongst continuous/Quarterly/Semi-annual/Annual
Given rate: entered in decimals. For e.g. 5 per cent is entered as 0.05
Rate expressed the desired frequency.
S Subramanian <email@example.com>
John C. Hull, "Options, Futures, and Other Derivatives", 8/E, Prentice Hall, 2012.