A CHARGING AND DISCHARGING ALGORITHM FLOW CHART X2026