Calculating Impedance for capacitor in AC circuit with some undefined waveform
The most basic form is 1/jwC
If you can determine the fourier transform of the waveform you are subjecting it to you can approach this analytically. 

Or use some form of simulation package