App note from Maxim Integrated on using fuel gauge IC to obtain accurate battery state of charge readings. Link here (PDF)
Because a product’s runtime is limited by battery capacity, it’s critical to have a precise method for measuring the remaining battery capacity to avoid an unexpected shutdown. This application note describes an experiment for obtaining accurate battery capacity readings in a dog-tracking project.