Function to calculate the convexity of a bond.
The user inputs are as follows:
Face Value: to be entered in numbers for e.g. 1200.50
Coupon rate: percent per annum
Discount rate: percent per annum
Maturity: number of years
Note: Clicking on the '+' and '-' respectively increases and decreases the value.
Coupon Payments: chosen amongst Quarterly/Semi-annual/Annual
Frequency of rates: chosen amongst continuous/same as coupon/annual
Duration of a bond.
S Subramanian <email@example.com>
John C. Hull, "Options, Futures, and Other Derivatives", 8/E, Prentice Hall, 2012.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.