fix days calucating error.