Leaving Hoth is the time reference, as both sets of characters (Luke & R2, Han & the gang) left within a few minutes, maybe an hour or two, tops, of each other.
I could see the Luke & Yoda scenes being stretched over a few weeks, maybe, but what were the gang on the Falcon doing during all that time?
Han & co went from escaping Hoth into the asteroid field, out of the slug to hitching a ride on the SD, then to Bespin. I can't see that chain of events taking months, or even weeks. Maybe a few days, tops.