When you should repair vs replace a broken gadget

When you should repair vs replace a broken gadget