DAYS(end_date, start_date)
=DAYS("7/15/2016","7/1/2016")
The DAYS function can be used to calculate the number of days between two dates. For example, to calculate the number of days between July 1, 2016 and July 15, 2016, the formula can be used. This will return 14 days.
=DAYS("1-Mar-21","2-Mar-21")+1
The DAYS function can also be used to calculate the number of days between two dates and to adjust the result. For example, to calculate the number of days between March 1, 2021 and March 2, 2021, the formula can be used. This will return 2 days.
The DAYS function calculates the number of days between two dates, using two required arguments: end_date and start_date.