State Of Charge Estimation For Batteries