Factorize diffInDaysFiltered