If you want to calculate the difference between 2 dates in Excel, you have to use a hidding function . It's the function DATEDIF.
Difference between 2 dates
Learn how to calculate the number of days between any two dates using in Excel. Easy-to-follow guide with clear explanations and examples