To calculate composite index