When is the capacitor at its maximum