intervals_differrence to be used for db balancing