time interval optimization