Appliance repair or replace? That may depend on if it’s time to upgrade to an energy-efficient appliance