Go To Documentation Main IndexMain Index
Go To TIPS, Inc.TIPS Home
spgb_py_ai

spgb_py_ai (routine)

Calculates bond dollar price, yield to maturity and accrued interest for Spanish government bonds

Introduced in release: 1.0
Component: Non-US (developed mkts)
Purpose: Calculates either dollar price or yield to maturity and accrued interest for a Spanish government regular bond with an optional interest free period. Specifically it performs calculations on Bonos, and Obligaciones.

Notes: This routine calculates and uses time periods between dates as the number of days in the current period divided by the number of days in the year plus the number of whole periods. An alternative method is to use the total number of days divided by the number of days in the year. The routine spgb_cf_py uses this method in calculating price/yield.

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. 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.

Last Mod Date: 11/30/1993© 2001 TIPS, Inc.Doc Version: 5.0