There's a literature about switching costs. One result suggests that the present value (technical term) of the customer to the company is equal to the cost of switching away, under certain assumptions. Obviously this formula is unhelpful/infinite in the case of total lock-in. I guess a good capitalist charges what the customer can bear, in that case.