I always learned you should either sleep 30 minutes or less, or 90 minutes or more, to prevent waking up in the middle of REM sleep and feeling more tired than when you started.
It really depends on the person. Those guidelines are a good starting point, especially for those who nap infrequently. When I was taking a siesta every day, Iād sleep about an hour with a full REM cycle and wake up easy.