# Order Costs

One of the most important variables we track is order costs. Order costs are the amount each order costs your web shop. If we subtract order costs from order total, we should be able to arrive at the profit per order.

There are many variables that affect order costs (shipping, taxes, etc.) - and this is why it's often easier for a web shop to calculate the costs themselves.

In the event that calculating order costs is too difficult - AristanderAI can use a simplified formula to calculate the profit:

For example, in the following order we have a total of 30.60, total taxes of 5.00, and total costs of 10.40.

The profit for this order (what we are trying to maximize) would be 30.60 - 10.40 = 20.20.

If total_costs are not provided, the profit of the order would be 30.60 - (50 cent net unit cost of product ID 106 * 2) - 5.00 = 24.60

Last updated