There are some signs that an AC unit shows when it needs replacement. It would be best if you looked out for these signs:
Limited or Bad Airflow.
Strange Noises
High Energy Bills
Awful Smells.