Modified calculation of indexes and subindexes