#C2300. Inclusive Date Range Days Count
Inclusive Date Range Days Count
Inclusive Date Range Days Count
Given two dates in the YYYY-MM-DD format, calculate the total number of days between them, including both the start and end dates. You must correctly account for leap years and the varying lengths of months.
The formula often used is: $$\text{days} = (\text{end\_date\_in\_days} - \text{start\_date\_in\_days}) + 1$$, where the conversion to days can be achieved using standard algorithms or built-in date libraries.
inputFormat
The input consists of two lines. The first line contains the start date and the second line contains the end date, both in the YYYY-MM-DD format.
outputFormat
Output a single integer representing the count of days between the two dates (inclusive).
## sample2022-01-01
2022-01-01
1