getDaysBetweenDatesObject and refactor with tests