Q=It
I:Currrent
t=Time
Example:
Battery capacity:1000mAH
---> discharge=1000mA x (Hour) 60 min x 60 sec x 1000msec ,
Measure current each 1ms
capacity for discharge :1000x60x60x1000-discharge current.
capacity for charge:1000x60x60x1000+charge current.