How to calculate the capacitor voltage drop resistance