Calculate one step odd last coupon bond dollar price, yield to maturity, and accrued interest
Introduced in release: 1.0 Component: US Bonds Purpose:
Calculates either dollar price or yield to maturity and accrued interest for a stepped odd last coupon periodic interest payment security. Specifically it will perform price/yield/accrued interest calculations for all periodic payment securities that pay the same dollar amount of interest each period until a conversion date, then a new dollar amount of interest each period until the last coupon date maturity, then the amount for the optional odd last coupon period (1 step).
Notes:
This routine only works with security_type 1, or 3 through 8. It does not work with any foreign security types.
Results:
All results are calculated using the industry standard rules or generally accepted practices, accurate to as many places as supported by a double precision value. The variable calculated contains the calculated dollar price or yield to redemption. To round or truncate the result to industry standards see the routine rslt_fix_plc. The variable ai contains the accrued interest per 100 of maturity value.
Error Conditions:
Returned values should be ignored for a non-zero status. See Errors.