Turns out 6.4 to 7.8 hours of sleep a night might be ideal. Here are some tips on how to get the “just right” amount.