Royalties and selling price calculation