Wait, which GainA register?
For the math, take a look at the math that is done on the registers in the Arduino library for reading the outputs. Some of them are funny, especially the 32 bit registers. I didn’t do calculations on the lower 16 bit registers of the voltage and current because they only represent 0.001