The Tax Cuts and Jobs Act passed in late 2017 includes many changes to the way businesses can deduct the costs of capital purchases, including roof replacement.  See the attached for more information

2017_Fed_Tax_Law_Bonus_Depreciation