Answer:
(Fatwa: 1322/1322=M/1430)
If the companies you invested in are not Shariah-compliant, you should get rid of the same. The percentage of profits gained from interest and non-Shariah ways should be given in charity to the poor. As far as income gained through lawful ways and your capital is lawful and halal for you.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband
