Capacitor circuit rating calculation