Description
Use this function to return the count of days between two specified dates based on a 360-day year. Supported in Chains.
In this year, all months are assumed to have 30 days.
Syntax
DAYS360(start_date,end_date, [method])
Inputs
This function has the following arguments:
| Name | Required | Valid input |
|---|---|---|
start_date |
Yes |
First date of the range to be considered. This can be a cell reference, an integer date, or a date in the format "DD/MM/YYYY" or "YYYY/MM/DD". |
end_date |
Yes | Last date of the range to be considered. This can be a cell reference, an integer date, or a date in the format "DD/MM/YYYY" or "YYYY/MM/DD". A formula which results in one of these is also acceptable. Quotation marks are required. |
method |
No |
TRUE or FALSE When If |
Examples
Sample data
| A | B | C | D | |
|---|---|---|---|---|
| 1 | 2/28/2023 | 12/6/2024 | TRUE | .07 |
| 2 | 36711 | November 30, 2000 | FALSE | .05 |
| 3 | 7/19/2003 | Friday, May 31, 2002 | 45 | 15,000 |
| 4 | 12/23/2013 | January 23, 2014 | Orange | 45,300 |
Sample formulas
| Use case | Formula | Explanation and Result |
|---|---|---|
| Determine the difference between the supplied dates, with no method specified. | =DAYS360("7/19/2003","9/19/2003") |
This formula returns 60. |
| Determine the difference between the date in cell A1 and the cell B1, with no method specified. | =DAYS360(A1,B1) |
For this data set, this formula returns 636. |
| Determine the difference between the date in cell A2 and the cell B2, using the US method. | =DAYS360(A2,B2,FALSE) |
For this data set, this formula returns 146. |
| Determine the difference between the date in cell A2 and the cell B2, using the European method, identified by referencing cell C1. | =DAYS360(A1,B1,C1) |
For this data set, this formula returns 638. |
| Determine the difference between the date in cell A4 and the cell B4, referencing cell C4. | =DAYS360(A4,B4,C4) |
#VALUE! (because C4 is neither TRUE nor FALSE) |
| Determine the number of complete months between two dates based on a 360-day year. | =TRUNC(DAYS360(A1, A2)/30) |
This formula works in the following manner:
For this data set this formula returns 21. |
| Determine the accrued interest on a loan with a 360-day year. | =(PRODUCT(DAYS360(A1,B1),D3,D1/360) |
This formula works in the following manner:
For this data set this formula returns 1855. |
Notes
- Wildcards don't work with this function.
- The day value can be a numeric value or a US or European format date, but if a text date format is used, both dates must be in the same pattern. These dates must be in quotation marks.
- The
methodvalue can be referenced for another cell. - If the
start_dateis after theend_date. the result will be a negative number. - DAYS360 only works with whole numbers and ignores time.
- If dates aren't recognized, DAYS360 returns the #VALUE! error.
- If dates are out of range, DAYS360 returns the #NUM! error.
Related functions
DATE
DATEVALUE
DAY
DAYS
DAYS360
EDATE
EOMONTH
MONTH
NETWORKDAYS
NETWORKDAYS.INTL
WEEKDAY
WORKDAY
WORKDAY.INTL
YEAR
YEARFRAC