We did the tourist bus day trip several years ago, began around 5am, were back around midnight. Hell of a long journey through all kinds of terrain and the bus wasn't the most modern. Cannot remember what we paid. We went straight there and back and had quite a few hours in Marrakesh. Doubt if local busses would do it in a day.