The cost basis of a home includes only capital improvements. Ordinary expenses, such as utility costs and property taxes, do not increase basis.
A tax credit directly reduces tax liability, as opposed to a deduction that reduces income subject to tax.