If you calculate the cost of chlorine over a 10 year period of time and the cost of purchasing, servicing and maintaining a salt generator over 10 years there is no comparison. Salt generators never have a payback, in fact, will likely cost more than twice as must as simple chlorine.
Keep in mind: it's not about cost, but rather convenience and safety!