When planning you might want to refer to this IRS publication as well:

www.irs.gov/publications/p54/ch04.html