Capacitor setting calculation formula