Numtokensselltoaddtoliquidity

Good afternoon

I’m currently dabbling with code and contract creation and I’ve found that the above function is somewhat dangerous and needs to be implemented correct, I’ve seen that FairSafeMoon analysed the code of SafeDex and said the ratio between the total supply and the above function was 0.5 meaning when the contract collected 50% of the tokens it would automatically dump 25% of that on the market.

Obviously I want to avoid this.

I’m looking to create a contract with a 100T supply no burn, I’m looking for the above function to activate at say 4T and therefore sell 2T back to the market, can anyone tell me what figure I need to put aside this function for that to happen or how to work it out, my maths and ratios are not the best