DATEDIFF, YEARFRAC – DAX Guide

DATEDIFF: Returns the number of units (unit specified in Interval) between the input two dates.
https://dax.guide/datediff/

YEARFRAC: Returns the year fraction representing the number of whole days between start_date and end_date.
https://dax.guide/yearfrac/