Interval helper class