How much % to purify from investing profits

Assalamu alaykum

Similar questions to purification of non-shariah compliant stocks have been asked, please see here for the guidance. It seems that all profits need to be purified (i.e. given away):

Can I wait before selling a losing stock that turned non permissible - Questions For IFG/Mufti / Investment Questions - IFG Islamic Finance Forum (islamicfinanceguru.com)

Ibrahim also points to a purification course on the link above. The Muftis may be able to advise further for your case.

JzkAllahkher