Usable capacity of batteries