If the unit is over 10 years old, it may be more cost-effective to replace it.  If the cost of repairs exceeds 50% of the cost of a new unit, it’s better to replace it.  If the unit is outdated and inefficient, replacing it with a newer, more energy-efficient model can lower energy bills. If the unit is frequently breaking down and needing repairs, it’s better to replace it.If the unit is not effectively cooling the room or causing discomfort, replacing it may improve comfort. It would be good to consult a licensed and experienced AC service provider to assess your AC and recommend the best course of action