Add last index calculator