Estimating the state of charge of a battery | Synapse