重载
IntRate (settlementDate, maturityDate, price, redemptionValue)
IntRate (settlementDate, maturityDate, price, redemptionValue, basis)
参数
price 是一个正数或金额,用来指定证券购买时的价值。
redemptionValue 是一个正数或金额,用来指定证券到期时将得到的赎回价格。
basis 是一个可选数字,用于指定使用的日计数基础体系。支持下列类型:
操作
IntRate 返回证券投资的利率。所使用的公式为:
= (redemptionValue - presentValue) / presentValue * (portion of the year according to the basis)
示例
假定在 2000 年 1 月 15 日以 1000 美元购买了一种证券,该证券在 2000 年 4 月 30 日到期,赎回价格为 1010 美元。使用 30/360 基准(常用于美国政府债券),可以用下列公式计算利率。
IntRate(DateValue(2000,1,15),DateValue(2000,4,30),1000,1010,0)
返回 0.0343(四舍五入到四位小数),对应于 3.43% 的利率。