Battery charging current calculation method