If capacitors could be inserted everywhere instead of resistors, the production of resistors would probably be abandoned. Capacitors are used instead of resistors in only one case. When a high-value alternating current flows through the resistor and the voltage drop across the resistor is significant, significant power is emitted across the resistor. Such a resistor can be replaced with a capacitor, provided that we do not mind the current and voltage shift introduced by this capacitor. We gain only that there are no power losses in the capacitor (of course, I ignore the negligible losses caused by the imperfection of the capacitor). To calculate the capacitor, the colleague's formula 12robert12 is enough.