fixed the bug of day difference, leap year is not that simple