Returns the interest rate of a fully invested security.
Namespace: Imsl.FinanceAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic static double Intrate(
DateTime settlement,
DateTime maturity,
double investment,
double redemption,
DayCountBasis basis
)
Public Shared Function Intrate (
settlement As DateTime,
maturity As DateTime,
investment As Double,
redemption As Double,
basis As DayCountBasis
) As Double
public:
static double Intrate(
DateTime settlement,
DateTime maturity,
double investment,
double redemption,
DayCountBasis^ basis
)
static member Intrate :
settlement : DateTime *
maturity : DateTime *
investment : float *
redemption : float *
basis : DayCountBasis -> float
Parameters
- settlement
- Type: SystemDateTime
The DateTime settlement date of the security.
- maturity
- Type: SystemDateTime
The DateTime maturity date of the security.
- investment
- Type: SystemDouble
A double which specifies the amount invested.
- redemption
- Type: SystemDouble
A double which specifies the amount to be received at
maturity.
- basis
- Type: Imsl.FinanceDayCountBasis
A DayCountBasis object which contains the type of day count
basis to use.
Return Value
Type:
Double
A
double which specifies the interest rate for a fully
invested security.
Remarks
It is computed using the following:
In the equation above,

represents the number
of days in a year based on the annual basis, and

represents the number of days in the
period starting with the settlement date and ending with the maturity
date.
See Also