Bug fix release. The edate
function was giving wrong answers under certain conditions when called with vector inputs. The incorrect if
statement has now been changed to the correct ifelse
. Thanks to Thethach Chuaprapaisilp for finding the bug.
redemption_value
to handle the situation where the bond is expected to be called at premium to par. This is based on code provided by Tom McGinty. (#1)