How to calculate the charging current of nickel batteries