fixed index calculation