Swearing in front of your kids

At what age and in what circumstance is it appropriate to swear in front of your kids?