Optimizing Charging Cycles