Given an electric circuit composed of a resistor with resistance R and a capacitor with capacitance C, the Kirchhoff loop rule requires that the sum of the changes in potential must be zero, so
where I is the current through the resistor and Q is the charge on the capacitor.
CL Circuit, CLR Circuit, Simple Harmonic Motion Eric Weisstein's World of Math