Use this formula to compute a lithium-ion battery pack capacity:
% = 1.25 * v / s - 3.875
Where % is the remaining capacity as a fraction of 1 (multiply by 100 to get a percentage), v is the pack voltage and s is the number of cells in series.