On the Optimal Duration of Migration