After finish GT, drive north to YS where is 100 miles away. But the most important thing is that you'd better book a room INSIDE yellowstone right now, if you are lucky! If you end up to stay outside of the park, the daily driving will cost you tons of time because of its big size.
Minimum 7 days is required for SLC->GT->YS->SLC.