Datediff function returns the number of units (unit specified in Interval) between the input two dates. These intervals can be years, quarters, months, weeks, days, hours, minutes and seconds etc.
Link to Microsoft documentation:
https://learn.microsoft.com/en-us/dax...
Enjoy Power BI!