How to calculate low voltage capacitor compensation