Intervals

from blog Brian Birtles’ Blog, | ↗ original
I’ve implemented handling for multiple begin and end values including calculating the active duration, selecting the correct interval etc.