Irregularity calculation

The documentation says that irregularity is calculated as “the variance of your mid sleep hour.” But variance over what time period? For example, if I want my regularity for tomorrow night to be as low as possible, should I aim for my mid-sleep hour to match the average from the last week, or the last month, or?