The hours spent sleeping do count towards your fasting period, making it easier to reach the 15-hour mark. For example, if you stop eating at 8 pm and sleep for eight hours, you only need to fast for another seven hours before breaking your fast at 11 am.