Kirchoff's voltage law for a voltage source and capacitor is

Or

Solving this equation gives

For DC circuits and hence . The capacitor acts like an open circuit (infinite resistance) in a DC circuit.