To calculate hours for intermittent fasting, determine the duration of time you plan to fast, typically measured in hours. For example, if you want to fast for 16 hours, you would refrain from consuming any calories for that period.