Given the price at which a discount (i.e. not bearing interest) security was bought, calculates its annual yield.
YIELDDISC(settlement: String, maturity: String, price: Number, redemption: Number, basis: String = us_nasd) => Number
The security's settlement date.
The security's maturity or end date.
The price at which the security is bought.
The redemption value of the security.
Method to use for counting days per month/year:
date1 = "2010-01-02T13:06:15+03:00"date2 = "2010-12-31T13:06:15+03:00"date3 = "2009-01-31T13:06:15+03:00"date4 = "2009-10-31T13:06:15+03:00"date5 = "2009-01-30T13:06:15+03:00"date6 = "2009-10-30T13:06:15+03:00"date7 = "2009-01-31T13:06:15+03:00"date8 = "2009-10-30T13:06:15+03:00"