Calculate bond yield to maturity with one or less period to redemption
Introduced in release: 1.0 Component: Generic Purpose:
Calculates the yield to maturity for a regular bond or odd first coupon bond that has less than or exactly one period remaining to maturity.
Alternatives:
This routine requires inputs normally provided by other interim routines. The bond_py_ai routine uses a coupon rate and relevant dates in computing a yield. bond_py_ai is also more inclusive in that it internally determines the number of remaining periods to maturity and selects the appropriate yield algorithm (less than or equal to one period or greater than one period).
Notes:
The maturity date used by this routine can be a maturity/redemption date.
Results:
The yield is returned as a percentage, accurate to as many places as supported by a double precision value.
Error Conditions:
Returned values should be ignored for a non-zero status. See Errors.