How many years back do I have to consider to calculate my net regular contributions to my ROTH IRA?

What years, prior to 2021, should I consider when computing my net regular ROTH IRA contributions?