Add conditions check for interval