How to calculate so that the total gives 100%

Maybe you could follow the post that has been discussed previously (it should solve your issue):