In WordPress, it’s possible to turn comments off automatically after a specified number of days have elapsed.
Go to the Settings … Discussion page.
In the Other comment settings section, select the option Automatically close comments on articles older than __ days.
Fill in the number of days, and save.