I have have table like this.

Now I wan't to create a measure as Days Vacant. In which I wan't to show no.of days that IteamAreaID has been vacant. If IteamAreaID 10 and ContractEndate is "Thursday, December 09, 2021" and again ContractStartDate is "Friday, December 10, 2021" for IteamAreaID 10 now in Days vacant measure I wan't to show as '0' because the days difference between those two dates are '0' and suppose if new ContractStartDate is "Wednesday, December 15, 2021" then Days vacant I wan't to show as '4'. For this how write dax
------------------------------
Phaneendra Adusumilli
------------------------------