How to calculate capacitor rated current