Please follow
https://www.irs.gov/publications/p542/ar02.html#en_US_2011_publink1000257769
.