Purifying investments in the SPY AND QQQ

How would one go about purifying investments in the SPY AND QQQ?
According to Zoya QQQ is 10% non-compliant and SPY is 28% non-compliant . Would I purify by giving in charity 10-28% of my returns or gains per year ?

You can buy a halal equivalent as SPUS or HLAL but end paying a 0.5% commission per year or what I did is just pick the top 10 stocks of the holdings of SPUS and HLAL that represent most of the fund so u don’t have to lose money on commission.