Capacitor reactance and capacitance calculation