Fixed index computation for timeline.