You use "Xài" with family, friends, or some one that you are close to, "dùng" is used in office, when you talk with your boss, your colledge or some one older than you