Check out example codes for "Google Sheets How to Count the Days Between Two Dates". It will help you in understanding the concepts better.

Code Example 1

# Basic syntax:
=DAYS("end_date", "start_date")

# Example:
=DAYS("01/01/2019","01/01/2018")

# Note, use =NETWORKDAYS for business days

Learn ReactJs, React Native from akashmittal.com