Battery rate and current calculation