Capacitor and battery in parallel