STPM32 Reading Energy values

Hai, I am using stpm32 ic for energy monitoring. in that ic, I somehow managed to get the voltage and current values by reading the register values but I don't know how to read the energy. Using the below-attached reference I can able to get the voltage and current value but there is no reference to getting the Energy value. after a few searching, I came to know that we have to read reg 54 for energy but don't have the formula to calculate the raw values can anyone help me how to read the energy from the stpm32.

Thanks in advance