At the end of May, the shipyard was asked how much time they needed to repair the Yorktown. They said, “Three months.”
They were given three days.
http://www.ibiblio.org/hyperwar/USN/ships/logs/CV/cv5-Midway.html
From Wikipedia I pick up this about the Shokaku. It seems to have been hurt worse, but a month to even find space for it in a dry dock? Didn’t they know there was a war on?
“8 May 1942 by dive bombers from USS Yorktown and Lexington which scored three bomb hits: one on the carrier’s port bow, one to starboard at the forward end of the flight deck and one just abaft the island. Fires broke out but were eventually contained and extinguished. The resulting damage required ShÅkaku to return to Japan for major repairs. On the journey back, the carrier shipped so much water through her damaged bow she nearly capsized in heavy seas, maintaining a high rate of speed in order to avoid a cordon of American submarines out hunting for her.
She arrived at Kure on 17 May 1942 and entered dry dock on 16 June 1942. Repairs were completed within ten days and, a little over two weeks later on 14 July, she was formally reassigned to Striking Force, 3rd Fleet, Carrier Division 1”.[10]