At
Disneyland, not in about the last 5 years or so, they have gotten it down to a pretty exact science. On a rare occasion they will take longer though.
The exception to this is when the Refurb is a major redo of an attraction, such as Star Tours. In those cases they will do Soft Openings earlier.