form 8881 for S-Corp 1120-S

Hi, I have S-Corp and want to file 8881 I do not understand what line 6 and 7 say:

 

 7- Credit for small employer pension plan startup costs from partnerships and S corporations 
8 -Add lines 5, 6g, and 7. Partnerships and S corporations, report this amount on Schedule K. All others,
report this amount on Form 3800, Part III, line 1j 

 

I would like someone help me to figure out when line 7 has an amount and where it comes from? 

Also, the cost of set-up will be deducted from the retirement contribution on line 17 of 1120-S if so, do I add this cost to the amount of contribution?

 

Marry Christmas 

I am hoping someone can  help me!