The only limit is when your current REM period ends.
So at least half an hour i'd say.