How can I set B2B custom prices based on cost prices?

Do you mean something like volume-based discount?