In formal writing, I do not use contractions at all.