How to calculate capacitor capacity