Calculate maximum current of a charger