What is the maximum distance from the trap of a shower to the drain of the shower?

What is the maximum distance from the trap of a shower to the drain of the shower?