It differs on the person. Some people use something called ''time dilation'' which can apparently make a REM period or two feel like hours, days, weeks, even months. In my experiences it's been hard to tell, but I can roughly guess how long I've been lucid for.