Please follow http://www.tax.ri.gov/forms/2017/Corporate/RI%20Schedule%20965_2017.pdf.