any time before 11pm server time will be fine. To power down properly you actually have to claim the rank powered down and then no attacking or being attacked thereafter. You can gear up again after you have claimed the rank with no gear/heroes.