The SOC is determined essentially by integrating the current flow over time, modified to take account of the many factors which affect the performance of the cells, then subtracting the result from the known capacity of the fully charged battery. This is described in detail in the section on SOC.