Perhaps the best thing he could do when he had realised the money for the shares would be to take Ruby for a tour abroad. 
Perhaps when he had realised the money for the shares he would take Ruby for a tour abroad. 