Fix the date calculation
Merge pull request #26 from jarmokortetjarvi/master

Fix the date calculation