Give yourself enough time that you're confident you'll be able to finish the maintenance within that timeframe. I was bitten more than once by scheduling a maintenance window too small, and then becoming frantic as the maintenance window passed and I still wasn't finished.