incomplete getDifferenceInDays function