Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

tbillrepo

Break-even discount of repurchase agreement

Syntax

TBEDiscount = tbillrepo(RepoRate,InitialDiscount,PurchaseDate,SaleDate,Maturity)

Description

example

TBEDiscount = tbillrepo(RepoRate,InitialDiscount,PurchaseDate,SaleDate,Maturity) computes the true break-even discount of a repurchase agreement.

TBEDiscount

Examples

collapse all

This example shows how to compute the true break-even discount of a Treasury bill repurchase agreement.

RepoRate = [0.045; 0.0475];
InitialDiscount = 0.0475;
PurchaseDate = '3-Jan-2002';
SaleDate = '3-Feb-2002';
Maturity = '3-Apr-2002';

TBEDiscount = tbillrepo(RepoRate, InitialDiscount,... 
PurchaseDate, SaleDate, Maturity)
TBEDiscount = 

    0.0491
    0.0478

This example shows how to use datetime inputs to compute the true break-even discount of a Treasury bill repurchase agreement.

RepoRate = [0.045; 0.0475];
InitialDiscount = 0.0475;
PurchaseDate = datetime('3-Jan-2002','Locale','en_US');
SaleDate = datetime('3-Feb-2002','Locale','en_US');
Maturity = datetime('3-Apr-2002','Locale','en_US');
TBEDiscount = tbillrepo(RepoRate, InitialDiscount,...
PurchaseDate, SaleDate, Maturity)
TBEDiscount = 

    0.0491
    0.0478

Input Arguments

collapse all

Annualized, 360-day based repurchase rate, specified as a scalar of a NTBILLS-by-1 vector of decimal values.

Data Types: double

Discount on the Treasury bill on the day of purchase, specified as a scalar of a NTBILLS-by-1 vector of decimal values.

Data Types: double

Date the Treasury bill is purchased, specified as a scalar or a NTBILLS-by-1 vector of serial date numbers, date character vectors, or datetime arrays.

Data Types: double | char | datetime

Date the Treasury bill repurchase term is due, specified as a scalar or a NTBILLS-by-1 vector of serial date numbers, date character vectors, or datetime arrays.

Data Types: double | char | datetime

Maturity date of the Treasury bill, specified as a scalar or a NTBILLS-by-1 vector of serial date numbers, date character vectors, or datetime arrays.

Data Types: double | char | datetime

Output Arguments

collapse all

True break-even discount of a repurchase agreement, returned as a scalar or NTBILLS-by-1 vector.

References

[1] SIA Fixed Income Securities Formulas for Price, Yield, and Accrued Interest. Volume 1, 3rd edition, pp. 44–45.

[2] Krgin, D. Handbook of Global Fixed Income Calculations. Wiley, 2002.

[3] Stigum, M., Robinson, F. Money Market and Bond Calculation. McGraw-Hill, 1996.

Introduced before R2006a

Was this topic helpful?