If you get the loan directly from Wells Fargo, you can refinance it at any time. There will be no loss for the loan officer. If you get the loan from the other smaller lenders (bankers or brokers or smaller bank), you should keep it for 4-6 months before closing the refinance loan.