breakout duration in parameters
improve duration calc indexing