Documentation/Calc Functions/DISC
TDF LibreOffice Document Liberation Project Community Blogs Weblate Nextcloud Redmine Ask LibreOffice Donate
Function name:
DISC
Category:
Financial Analysis
Summary:
Calculates the discount rate for a security that is issued at less than face value (discounted), pays no interest, and pays the investor its face value at maturity. Such a financial instrument is sometimes known as a discount security.
Syntax:
DISC(Settlement; Maturity; Price; Redemption[; Basis])
Returns:
Returns a real number, which is the discount rate for a security with the specified characteristics. The number returned is a percentage expressed as a decimal fraction (for example, the returned value 0.075 would represent 7.5%).
Arguments:
Settlement is a date (in quotation marks) or a date-time serial number, or a reference to a cell containing one of those types, which specifies when a trade is "settled". On this date the transfer of the security to the buyer is completed, and the buyer makes the appropriate payment.
Maturity is a date (in quotation marks) or a date-time serial number, or a reference to a cell containing one of those types, which specifies when the security matures. On maturity, the holder is paid the redemption value of the security.
Price is a positive real number, or a reference to a cell containing that number, which is the price of the security.
Redemption is a positive real number, or a reference to a cell containing that number, which is the redemption value of the security. Redemption should be in the same currency unit as Price.
Basis is an integer in the range 0 to 4, or a reference to a cell containing that integer, which indicates how the year is to be calculated. For more background information, visit Wikipedia's Day count convention page.
Basis | Calculation |
---|---|
0 or missing | US method (NASD), 12 months of 30 days each |
1 | Exact number of days in months, exact number of days in year. |
2 | Exact number of days in month, year has 360 days. |
3 | Exact number of days in month, year has 365 days. |
4 | European method, 12 months of 30 days each. |
- If either Maturity or Settlement is not a valid date, then DISC reports a #VALUE! error.
- If either Maturity or Settlement contain time components, then these are ignored by DISC.
- If the Settlement date is on or after the Maturity date, then DISC reports an invalid argument error (Err:502).
- If either Price or Redemption is non-numeric, then DISC reports a #VALUE! error.
- If either Price or Redemption is less than or equal to 0.0, then DISC reports an invalid argument error (Err:502).
- If Basis is non-numeric, then DISC reports an invalid argument error (Err:502).
- If Basis is a non-integer value, then DISC truncates it to an integer value.
- If, after any truncation, Basis is not equal to 0, 1, 2, 3, or 4, then DISC reports an invalid argument error (Err:502).
Additional details:
- The formula for DISC is:
- [math]\displaystyle{ \text{DISC}~=~\frac{Redemption\:-\:Price}{Redemption\:\times\:\text{YEARFRAC}(Settlement;\:Maturity;\:Basis))} }[/math]
- The discount rate calculated by the DISC function and the yield calculated by the YIELDDISC function are not the same. However, assuming that the same arguments are passed to both functions, the two values returned are related by the formula:
- [math]\displaystyle{ \text{DISC}~=~\frac{Price}{Redemption}\times\text{YIELDDISC} }[/math]
Examples:
Formula | Description | Returns |
---|---|---|
=DISC(A1; A2; A3; A4) where cells A1 and A2 contain the dates 2022-01-25 and 2022-11-15 respectively, while cells A3 and A4 contain the numbers 97 and 100 respectively. | Here the function calculates the discount rate for a discount security with the specified characteristics. No value is specified for the Basis argument and so the default value of 0 (12 months of 30 days each) is applied. The function returns the value 0.0372413793103449 (3.72%). | 0.0372413793103449 |
=DISC(DATE(2022; 1; 25); DATE(2022; 11; 15); 97; 100; 3) | Here the function calculates the discount rate for the same security as in the previous example, but utilizes the DATE function instead of typing formatted date values and uses the value 3 for the Basis argument. The function returns the value 0.0372448979591837 (3.72%) | 0.0372448979591837 |
=DISC("2001-01-25"; "2001-11-15"; 105.75; 110.6; 1) | Here the function calculates the discount rate for a discount security with the specified characteristics. The function returns the value 0.0544417586202654 (5.44%). | 0.0544417586202654 |
Related LibreOffice functions:
ODF standard:
Related (or similar) Excel functions:
DISC