Rental expenses

I had to replace a septic system at my rental property and would like to know how to write it off