Gandhi arrived in South Africa (Durban, not Cape Town, though the option assumes South Africa) in 1893 to work on a legal case. He remained in South Africa for 21 years (1893-1914) before returning to India. 1887 is too early (he was still in India/England), 1890 is incorrect, and 1898 is too late (he was already active in South Africa by then).