Only as much time as you need.  That’s because mediation is a completely transparent process — you should always know exactly what you’ve worked on so far, what you are working on currently, and what is left to do.  Also, you direct how much or little time you take to work on any one topic.  And when you’re done, you’re done: once you’ve resolved all topics and finalized your divorce with the court, mediation is complete.