Capacitor formula to find the potential