Battery pack charging current formula