Is there a formula or method for figuring out when replacement becomes more cost-effective than ongoing repairs?” ...