Fixed bug with date calculation