[Issue #139] Fix time interval calculation involving weeks.
Merge pull request #140 from scraton/master

[Issue #139] Fix time interval calculation involving weeks.