Switch only if the yearly saving times the years left beats the switching cost
Whether to switch comes down to two amounts: the money saved each year times the number of years you'll still use it, and the switching cost you pay when you leave.
S=s×t−C
s is the money saved each year, t is the years you'll still use it, C is the switching cost, and S is how much you save in all by the end; switching is worth it only if S is positive. For the gym it's 1000×2−3000=−1000: switching loses you 1,000 yuan.
A company replacing its accounting system faces the same sum. It would save 60,000 yuan a year, and moving the data, retraining the accountants and running old and new side by side to check the books costs 200,000 in all. Counting in tens of thousands of yuan: if it will use the system for only two more years, 6×2−20=−8, and switching loses 80,000; if it will use it for eight more years, 6×8−20=28, a net saving of 280,000, so it should switch. If the new system's vendor cuts the migration cost to 80,000, 6×2−8=4, and even two years of use saves 40,000 net, so a company that was hesitating starts to take interest.
Only costs that appear when you leave count
Cancellation fees, relearning how things work, moving data, accessories that don't fit, losses from downtime and mistakes, and points that expire all count. Money already spent doesn't count; it won't come back whether you switch or not. What counts is what you'll have to buy again or redo after switching.
Existing customers are harder to win over than new ones
New customers don't yet have data, accessories or habits tied to the product; existing customers have already built it into their daily routine. So a new customer's switching cost is close to zero, and a rival who can attract newcomers can't pry away the old hands. A rival who gives away migration tools and pays for training is in effect paying part of the customer's switching cost. If the current supplier raises prices and gets worse year after year, the yearly saving from switching keeps growing, and sooner or later someone works out that it's time to go.
Things that have to be redone every time you move, like software, data and dedicated accessories, hold on to people best. With things paid for and used on the spot that need no migration, customers who stay mostly just like them more. When a contract expires, equipment wears out or a business is rebuilt, you'd have to buy again and redo things even without switching, so the switching cost falls by itself. Also, some companies deliberately block the exits; customers push back sooner or later, and regulators step in to tear the barriers down. In 2003 the US required that phone numbers be portable, and carriers lost one of their locks.