WebCab Bonds for Delphi (COM)
DurationConvexity.Duration Method
Evaluates the duration of a bond with a continuous interest yield where the cash flows (or payments) made in terms of amount and time of payment are known.
Parameters yield The continuous compounded yield paid by the bond expressed in decimal format (i.e. 1 percent = 0.01). payments An array of doubles where the first element represents the first payment from the bond, the second the second payment and so on. evaluationDate The date on which the duration of the bond is evaluated. paymentDates An array of dates where the first term corresponds to the first payment date and the second payment date corresponds to the second payment and so on. principleSum The principle sum paid by the bond at maturity. maturityDate The date when the bond matures. businessCalendarName The name of one of the implemented business calendars, "London" by default. See Also DurationConvexity Class | WebCab.COM.Finance.Bonds Namespace