Transaction with burn and fee

i want the function or some section code to burn and fee with specific percent on every transfer