Exclude end timestamp from interval

Closes #2