I think it’s pretty well explained here:
Make sure to check out other topics in the Guide section. They will get you started quickly in Intervals.