Set a liquidity ration on my smart contract

Hi. I would like to set up my token smart contract in a way that, 8% of every purchase goes to the liquidity, for an instance if there is $100 of purchase on my token, $8 goes to the liquidity. Could you please help me with that.
Thank you.