How to calculate capacitor for motor