Refer to form 40 instructions Page 38.
http://www.revenue.pa.gov/FormsandPublications/FormsforIndividuals/PIT/Documents/2017/2017_pa-40in.p...