Deductions & credits

So if I sell an apartment building and the buyer requires me to buy a home warranty for each of the apartments, is this cost deductible?  If so, what tax category do I include it in?  

Thank you