Upgrading Gadgets: When is the Best Time to Do It?