Please follow
https://www.irs.gov/publications/p505/ch02.html#en_US_2016_publink1000194638
.