The time it takes is doubled when beans are in the crate. The effect wears off when the beans in the crate are gone. Think of it as a "double time."
Let's say I send off my Pokémon on an adventure to find treasure like I always do. That takes 24 hours. I put 10 regular beans in the crate...