handle case when second date is less than first