# Order-to-Cash Due dates

> In **UiPath Process Mining**, a due date is defined as an activity that needs to occur before a specified date. Due dates are used to get information regarding cases meeting or not meeting deadlines and the related costs.

## Introduction

In **UiPath Process Mining**, a due date is defined as an activity that needs to occur before a specified date. Due dates are used to get information regarding cases meeting or not meeting deadlines and the related costs.

A due date checks the difference between the **Actual date** of an event and the **Expected date** of the event. By default, the actual date is defined as value of the event end attribute. To create a proper due date, you must define the **Expected date** for the due date. Optionally, you can define the **Due date amount**, which is often referring to a penalty or a discount, and a **Time bin**, which is a description of whether the due date was met on time or not. For example, 1 day late or 3 days late.

## Default Due dates

In the **SAP Order-to-Cash Connector for AppOne** default due dates are defined for the **Order-to-Cash** process. For each Due date an expression for the actual date and for the expected date is defined in the `Events_preprocessing` table. See the illustration below.

![docs image](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-docs-image-54772-46affa34-c5351450.webp)

In the **SAP Order-To-Cash Connector** the following default due dates are defined for the Order-to-Cash process.

 <colgroup>
  <col/>
  <col/>
  <col/>
  <col/>
 </colgroup>
 
  
     Due date  
     Description  
     Actual date  
     Expected date  
  
 
 
  
     Goods issue deadline  
     The ordered goods should be issued before the planned delivery date.  
     Event end of activity Post goods issue 
     Planned delivery date  
  
  
     Receive payment complete deadline  
     The invoice should be paid on/before the payment due date. If the customer pays after the payment due date, the accounts receivables are considered to be overdue. Note: discount periods can be taken into account. 
     Event end of activity Receive payment 
     Payment due date  
  
  
     Pay credit memo deadline  
     A credit memo can be cleared with outgoing Payment (money return) or with another accounts receivables. If the clearing is done after the due date, the credit memo is considered to be overdue.  
     Event end of activity Pay credit memo 
     Payment due date  
  
 

## Related information

See [Adding Process Specific Due Dates to the SAP Connector for AppOne](https://docs.uipath.com/process-mining/standalone/2021.10/user-guide/adding-process-specific-due-dates-to-the-sap-connector-for-appone#adding-process-specific-due-dates-to-the-sap-connector-for-appone).
