Technical debt is shortcomings in the code that makes it less than 'good enough' and therefore creates risks in the future. It usually decreases velocity in the future (because the team has to fix the shortcomings) and as some of the debt
might remain in the file product, the maintenance cost will increase as well. Total cost of ownership is a combination of the project cost and maintenance cost.