How many times you can attempt CA Foundation, CA Inter/IPCC & CA Final Exams?

A lot of students often ask this question “How many times I can attempt CA CPT/CA Foundation, CA Inter/IPCC and Final Exams?”. When asked from different people, someone says it’s a limit of 5 attempts and others say 5 years…