Fix accounting for partial hours at the start of the interval.
Merge pull request #7 from balshor/master

Fix accounting for partial hours at the start of the interval.