Add calc of index values of input of data