To calculate the size of the capacitor you need, get a multimeter and connect the positive and negative probes to the positive and negative terminals of the power source respectively. Take the square of the voltage the multimeter has given you and multiply it 0.5 times. Record the figure (X).