If your trip is not within 2 weeks, but you need your U.S. passport more quickly than the normal processing period of 4 to 6 weeks, you can request expedited service by mail or in person at a passport acceptance facility near you.
The average is 2-3 weeks for a refinance and 4 weeks for a purchase. The time it takes to close your loan can be affeted by many things and no loan is the same.
If you are refinancing and have a second mortgage or HELOC that will not be included in the refinance, make sure your loan originator is aware and that they know how long subordinations are taking so they can lock your rate in appropriately. A 30 day lock with a 20 day subordination is not going to cut it.