fixed distanceInDays for close dates

Previous approach wont work for close dates , for example:

distance between Aug, 20, 11:00 and Aug, 19, 14:30  was returning 0 days , but should return 1 day.