Calculate bond after tax yield to maturity with 1 or less period to redemption
Introduced in release: 1.0 Component: US Bonds Purpose:
Calculates the after tax yield to maturity for a regular bond or odd first coupon bond that has one or less period remaining to maturity.
Alternatives:
This routine requires inputs normally provided by other interim routines. The bond_py_tax routine uses a coupon rate and relevant dates in computing an after tax yield. bond_py_tax 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:
This routine requires a before tax price to maturity and associated income and capital gains/loss rates.
Results:
The routine returns the calculated yield 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.