If your AC unit is over ten years old, requires frequent repairs, and has a reduced efficiency, it might be more cost-effective to replace it. New units are generally more energy-efficient, which could lead to savings in the long run.