Phineas and Ferb's Quantum Boogaloo

Phineas and Ferb travel to the future to find a tool that fuses metal with wood. There they encounter a 35-year old Candace who follows them back through time and finally busts her brothers as they are building their rollercoaster, but also accidentally foils Agent P's plan to defeat Dr. Heinz Doofenshmirtz, setting off a chain reaction that turns the future into a dystopian society.