Get_battery_health formula?

Can anyone help me understand how get_battery_health is calculated? I’m wondering how dependable the results are considering I’m seeing 79% on a brand new battery.
I don’t know how useful the information would be regardless, but am certainly curious what goes into the forumla.
Thanks

Bumping this. Can anyone from sixfab tell me how battery health is calculated?

Hi @barryjump,

Apologies for delaying.
Battery health data is provided by the fuel gauge integrated into HAT. The fuel gauge integrated used is bq27441-G1. Product datasheet: https://www.ti.com/lit/ds/symlink/bq27441-g1.pdf?ts=1654514226211&ref_url=https%3A%2F%2Fwww.google.com%2F
It gives more reliable information after several charge-discharges of the battery.