A good question.
It varies according to the equipment you're diving; rebreather or open circuit. With rebreathers you effectively have unlimited gas supplies so in theory you could do ridiculously long dives. However, there's many other limits to include in the planning:
- Scrubber times: most rebreathers have scrubber limits over 4 hours and especially in warm water.
- The dive boat skipper: how long can you dive for? Depends on the boat and location, but typically you'll have a good 2 hours or longer if planned and agreed. Certain sites will have much longer dive times due to the target depth.
- Depth leads the decompression schedule: dives to 45m/150ft are around 1:1 (1h bottom time, 1h deco); 60m/200ft are around 2:1 (1h bottom, 2h deco); deeper are 3:1, 4:1, etc.
- Temperature: how long can you be in cold water doing nothing? How long does your suit heater work for?
- Boat logistics: using a lazy shot with trapeze or coming up alone under an SMB -- basically do you have extra deco gas available? Do you need a drop bottle, if so, agree this with the skipper including the signal to throw it in.
- Your preferred decompression model: Buhlmann with which gradient factors? If around 50:70 to 50:80 it will add another few mins at the top stop. If using 30:70 then it'll be longer.
- Gases: diluent types. Are you running separate diluent or sharing it as bailout (aka DilOut)? Have you taken into account max PPO2 at depth, e.g. setpoint of 1.0 or 1.1? Lots of helium in the diluent for a clear head?
- Gases: bottom bailout needs to be cost effective and work at the planned depth. PPO2 must be OK for using it as offboard diluent, possibly higher than diluent. Any travel gases to get from the bottom to the deco stops? How long is the deco time, so do you need more than one decompression bailout gas? What's the optimum bailout decompression gas for this dive? 50%, 60%, 80%, 100%?
When you have all this info to hand, you then sit down with your planner (such as MultiDeco) and run the numbers through. You play with all the scenarios and plug in what you've got and what you may want. Money becomes an issue if diving "abroad" as you're going to pay through the nose for helium and deco gases.
Some people may have a more rigid approach to dive planning where they stick to "standard" gases and procedures. Others will plan taking into consideration all of the above.