Examples herein disclose determining an interval to limit an inrush of current to charge a capacitor. The interval is based on a peak input voltage without exceeding a current limitation. The examples connect and disconnect a switch to charge the capacitor in accordance with the interval.