fixed issue with dates that lie in the far future (>24.8 days)