add calculate minimal interval