Age is the first filter, not the last word. As general industry ranges, a central air conditioner in this climate commonly runs 12 to 18 years. A heat pump usually lands nearer 10 to 15, because it works in both seasons and accumulates roughly twice the run hours of a cooling only system in the same house. Gas furnaces often reach 15 to 25 years, cast iron boilers considerably longer, and a conventional tank water heater typically gives 8 to 12 years before the tank itself gives out. Tankless units can run much longer if they are descaled.
Where the unit sits in that range changes the weight of everything else. A failure in the first third of expected life usually deserves a repair, since the rest of the machine has years left. A failure in the last third means you are buying time on a system where the next component is already aging toward its own failure. Maintenance history shifts the range in both directions: a unit that has been serviced, kept clean and had its filters changed will outlast an identical one that ran dirty in a hot attic for a decade.