what is the mathematical relationship between the total charge in the nuclei and the total charge of the nuclei in the products.

The charge in a nucleus is dependent on the number of protons, which does not change in chemical reactions.