Refactors calculation of index value.
Refactors calculation of stringMonth method.