Bug 8486 Correct calculation of days_between