fixed the the date calculation error