Before the work
For the banner and the email, a few days ahead.
Scheduled maintenance: [what’s affected] will be unavailable on [weekday, date], from [start time] to [end time] [timezone]. [What still works.] If you need to [do the thing], please do it before [start time] or after [end time]. We’ll post updates on [where].