Fixed date logic for computing number of days between 2 dates.