Understand how to avoid paying state taxes twice, especially if you work in a different state from your home.