Here are some clues that hint that the replacement time is near:
Unreasonable high electrical bills.
AC needs repairing more than previously.
AC is not working with efficiency even after spending lots of money on all the available services by the HVAC companies.
Loud and irritating noise disturbance.
The AC unit has crossed the threshold of its warranty period.