redis
Intervals calculation