Changes in accumulated other comprehensive loss by component and related tax effects for the three and six months ended April 30, 2017 and 2016 were as follows: | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unrealized gain on equity securities | | Foreign currency translation | | Net defined benefit pension cost and post retirement plan costs | | Unrealized gains (losses) on derivatives | | Total | | | | | Actuarial losses | | Prior service credits | | | | | (in millions) | As of January 31, 2017 | | $ | 14 |
| | $ | (53 | ) | | $ | (618 | ) | | $ | 46 |
| | $ | — |
| | $ | (611 | ) | Other comprehensive income (loss) before reclassifications | | (1 | ) | | 9 |
| | — |
| | — |
| | (1 | ) | | 7 |
| Amounts reclassified out of accumulated other comprehensive loss | | — |
| | — |
| | 17 |
| | (6 | ) | | 1 |
| | 12 |
| Tax (expense) benefit | | 1 |
| | — |
| | (5 | ) | | 2 |
| | (1 | ) | | (3 | ) | Other comprehensive income (loss) | | — |
| | 9 |
| | 12 |
| | (4 | ) | | (1 | ) | | 16 |
| As of April 30, 2017 | | $ | 14 |
| | $ | (44 | ) | | $ | (606 | ) | | $ | 42 |
| | $ | (1 | ) | | $ | (595 | ) | | | | | | | | | | | | | | As of October 31, 2016 | | $ | 10 |
| | $ | (29 | ) | | $ | (646 | ) | | $ | 50 |
| | $ | (3 | ) | | $ | (618 | ) | Other comprehensive income (loss) before reclassifications | | 4 |
| | (15 | ) | | 24 |
| | — |
| | 2 |
| | 15 |
| Amounts reclassified out of accumulated other comprehensive loss | | — |
| | — |
| | 34 |
| | (12 | ) | | 2 |
| | 24 |
| Tax (expense) benefit | | — |
| | — |
| | (18 | ) | | 4 |
| | (2 | ) | | (16 | ) | Other comprehensive income (loss) | | 4 |
| | (15 | ) | | 40 |
| | (8 | ) | | 2 |
| | 23 |
| As of April 30, 2017 | | $ | 14 |
| | $ | (44 | ) | | $ | (606 | ) | | $ | 42 |
| | $ | (1 | ) | | $ | (595 | ) | | | | | | | | | | | | | | As of January 31, 2016 | | $ | 15 |
| | $ | (73 | ) | | $ | (499 | ) | | $ | 62 |
| | $ | (2 | ) | | $ | (497 | ) | Other comprehensive income (loss) before reclassifications | | (1 | ) | | 56 |
| | — |
| | — |
| | (3 | ) | | 52 |
| Amounts reclassified out of accumulated other comprehensive loss | | — |
| | — |
| | 14 |
| | (7 | ) | | 3 |
| | 10 |
| Tax (expense) benefit | | — |
| | — |
| | (4 | ) | | 2 |
| | — |
| | (2 | ) | Other comprehensive income (loss) | | $ | (1 | ) | | $ | 56 |
| | $ | 10 |
| | $ | (5 | ) | | $ | — |
| | $ | 60 |
| As of April 30, 2016 | | $ | 14 |
| | $ | (17 | ) | | $ | (489 | ) | | $ | 57 |
| | $ | (2 | ) | | $ | (437 | ) | | | | | | | | | | | | | | As of October 31, 2015 | | $ | 21 |
| | $ | (48 | ) | | $ | (511 | ) | | $ | 65 |
| | $ | (6 | ) | | $ | (479 | ) | Other comprehensive income (loss) before reclassifications | | (8 | ) | | 31 |
| | 4 |
| | — |
| | (1 | ) | | 26 |
| Amounts reclassified out of accumulated other comprehensive loss | | — |
| | — |
| | 28 |
| | (13 | ) | | 7 |
| | 22 |
| Tax (expense) benefit | | 1 |
| | — |
| | (10 | ) | | 5 |
| | (2 | ) | | (6 | ) | Other comprehensive income (loss) | | (7 | ) | | 31 |
| | 22 |
| | (8 | ) | | 4 |
| | 42 |
| As of April 30, 2016 | | $ | 14 |
| | $ | (17 | ) | | $ | (489 | ) | | $ | 57 |
| | $ | (2 | ) | | $ | (437 | ) |
|