I replaced a HVAC unit on my rental, I signed the contract on 12-27-2023 and the unit went into service 01-05-2024. Do I use the contract date or In Service date?

Trying to learn what tax year I can start writing off my capital improvements