Question: Write a macro function to estimate the Macaulay duration. Use the values given on sheet P3a to test your function. begin{tabular}{|l|l|r|} hliner: & YTM &

Write a macro function to estimate the Macaulay duration. Use the values given on sheet P3a to test your function.
\begin{tabular}{|l|l|r|} \hliner: & YTM & 4.5% \\ \hlinec: & Coupon Rate & 7.3% \\ \hlineN: & Number of coupon periods to maturity & 10 \\ \hline & Number of days from the last coupon & \\ \hlinet: & PMT to the settlement date & 178 \\ \hlineT: & Number of days in the coupon period & 365 \\ \hline \end{tabular} Macaulay Duration \begin{tabular}{|l|l|r|} \hliner: & YTM & 4.5% \\ \hlinec: & Coupon Rate & 7.3% \\ \hlineN: & Number of coupon periods to maturity & 10 \\ \hline & Number of days from the last coupon & \\ \hlinet: & PMT to the settlement date & 178 \\ \hlineT: & Number of days in the coupon period & 365 \\ \hline \end{tabular} Macaulay Duration
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
