Dear Student,
To calculate the bonding electrons of formal charge, you just need to count number of bonds and then multiply by 2. Each bond is made up of 2 electrons, so bonding electrons will be twice the number of bonds. Just make sure that you count number of bonds as 2 for double bond and 3 for triple bond.
Regards