TBillPrice(Settlement: DateTime, Maturity: DateTime, Discount: Double): Double;
Settlement. The treasury bill's settlement date
Maturity. Maturity date for the Treasury bill
Discount. Discount for a treasurer's bill.
The TBillPrice method returns price for $100 of principal value for a treasury bill.
The Settlement parameter value should not be less than the Maturity parameter value.
Value of the Discount parameter must be positive.
The method is calculated as follows:
,
where:
DSM. Number of days from the Settlement calculation date to the Maturity maturity date calculated basing on 360 day year.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Finance.TBillPrice(DateTime.ComposeDay(2007,01,01), DateTime.ComposeDay(2008,09,01), 0.05);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the value equal to 91.67.
See also: