Deductions & credits

Yes, that’s correct.  You only want to base the credit on your out-of-pocket costs.