calculator with the word index