The British naval blockade began to have a serious impact on Germany. In response, in February 1917, the German General Staff convinced Chancellor Theobald von Bethmann-Hollweg to declare unrestricted submarine warfare, with the goal of starving Britain out of the war. German planners estimated that unrestricted submarine warfare would cost Britain a monthly shipping loss of 600,000 tons. The General Staff acknowledged that the policy would almost certainly bring the United States into the conflict, but calculated that British shipping losses would be so high that they would be forced to sue for peace after 5 to 6 months, before American intervention could make an impact. Tonnage sunk rose above 500,000 tons per month from February to July. It peaked at 860,000 tons in April. After July, the newly re-introduced convoy system became effective in reducing the U-boat threat. Britain was safe from starvation, while German industrial output fell, and the United States joined the war far earlier than Germany had anticipated. On 3 May 1917, during the Nivelle Offensive, the French 2nd Colonial Division, veterans of the Battle of Verdun, refused orders, arriving drunk and without their weapons. Their officers lacked the means to punish an entire division, and harsh measures were not immediately implemented. The French Army Mutinies eventually spread to a further 54 French divisions, and 20,000 men deserted. However, appeals to patriotism and duty, as well as mass arrests and trials, encouraged the soldiers to return to defend their trenches, although the French soldiers refused to participate in further offensive action. Robert Nivelle was removed from command by 15 May, replaced by General Philippe Pétain, who suspended bloody large-scale attacks.
Question: How many months after unrestricted submarine warfare was declared was Robert Nivelle removed from command?
Answer: 3