Margin and markup
Margin is the profit as a part of the selling price; markup is the profit as a part of the cost. A product bought for 80 and sold for 100 has a 20% margin and a 25% markup.
The calculator works both ways: from cost and price it gives the profit, margin and markup; from the cost and the margin (or markup) you want, it gives the selling price.