Price of Treasury bill
Price = prtbill(Settle, Maturity, Face, Discount)
Enter as serial date number or date string. Settle must be earlier than Maturity.
Enter as serial date number or date string.
Redemption (par, face) value.
Discount rate of the Treasury bill. Enter as decimal fraction.
This example shows how to return the price for a Treasury bill, where the settlement date of a Treasury bill is February 10, 2002, the maturity date is August 6, 2002, the discount rate is 3.77%, and the par value is $1000.
Price = prtbill('2/10/2002', '8/6/2002', 1000, 0.0377)
Price = 981.4642