DAYS360 function

This topic describes the formula syntax and usage of the DAYS360 function in the Data Quality Execute Formula transform.

Description

Calculates the number of days between two dates based on a 360-day year. The 360-day year is used in some accounting calculations based on twelve 30-day months.

Syntax

DAYS360(start_date,end_date,[method])

The DAYS360 function syntax has the following arguments:

  • Start_date, end_date Required. The two dates between which you want to know the number of days. If start_date occurs after end_date, the DAYS360 function returns a negative number. Dates should be entered by using the DATE function, or derived from the results of other formulas or functions. For example, use DATE(2008,5,23) to return the 23rd day of May, 2008. Problems can occur if dates are entered as text.
  • Method Optional. A logical value that specifies whether to use the U.S. or European method in the calculation.
    Method Defined
    FALSE or omitted U.S. (NASD) method. If the starting date is the last day of a month, it becomes equal to the 30th day of the same month. If the ending date is the last day of a month and the starting date is earlier than the 30th day of a month, the ending date becomes equal to the 1st day of the next month; otherwise the ending date becomes equal to the 30th day of the same month.
    TRUE European method. Starting dates and ending dates that occur on the 31st day of a month become equal to the 30th day of the same month.

Example

Formula: DAYS360([Start_Date],[End_Date])
Start_Date End_Date Description Result
1-Feb-21 31-Dec-21 Number of days between 1/2/2021 and 12/31/2021. 358
30-Jan-21 31-Dec-21 Number of days between 1/30/2021 and 12/31/2021 330
20-Mar-21 31-Dec-21 Number of days between 1/30/2021 and 12/31/2021 280