Hi and welcome to the forum

In A1, cost price=100
In BI Desired Margin, let's say 40%

In C1, use this.

=A1+(B1*100)

Is this, works for you?