delta U = I*T/C for DC current only! (I - current, T - time, C - capacitance).

in general:

u(t) = (1/C)  * integration(i(t))