The contribution margin in this screen is based on the last defined purchase and sales prices in the products (regardless of the scale). In the long run you will probably be able to define it more precisely.
More information can be found in our manual: