# Calculations within routing

{% hint style="info" %}
If you would like to use these functionalities, [contact our Support team](https://ocfulfillment.atlassian.net/servicedesk/customer/portal/1) for more information and activation support.
{% endhint %}

In the optimization phase of the routing process, calculations are performed for each sourcing option based on the configured rules.

These rules include:

* A total cost calculation for each sourcing path, considering the configured components such as [purchase prices](https://docs.fulfillmenttools.com/documentation/getting-started/facilities/prices#purchase-price) (including [discounts](https://docs.fulfillmenttools.com/documentation/getting-started/facilities/facility-discounts)) and shipping costs.
* The calculation of the **expected delivery date**.

The results of these calculations can serve two purposes:

* They can be provided to external systems, such as a web shop, for promising to consumers.
* They act as key routing factors used to determine the best sourcing path for a (potential) order.
