Consider "end" as exclusive: it's the very beginning of the next period