---
title: Use Cases
description: "Customer is using M-Files for contracts and document management. He would like to know how many days until the expiration of the contract (Picture 1). Customer has used “DATEDIFF” macro in Macros. ![](https://extensionkit.unitfly.com/wp-content/uploads/2025/05/image-81.png) *Picture 1. Contract* In Picture 2, we…"
url: "https://extensionkit.unitfly.com/documentation/extended-auto-properties-use-cases/"
updated: "2025-05-01"
category: Configurations / Extended Auto Properties
---

# Use Cases

Customer is using M-Files for contracts and document management. He would like to know how many days until the expiration of the contract (Picture 1). Customer has used “DATEDIFF” macro in Macros.

![](https://extensionkit.unitfly.com/wp-content/uploads/2025/05/image-81.png)
*Picture 1. Contract*

In Picture 2, we can see that Property „Expiring (days)“ has been populated.

![](https://extensionkit.unitfly.com/wp-content/uploads/2025/05/image-82.png)
*Picture 2. Contract with Expiring (days) populated*

##### Configuring Auto properties

![](https://extensionkit.unitfly.com/wp-content/uploads/2025/05/image-83.png)
*Picture 3. Configuration – Expiring*

#### Track working days and non-working days when employee takes vacation

Customer wants to track all working days in vacation period of employees.

We created *Object type = Vacation* in our M-Files Vault and added class *Vacation Application*. We used it for logging the days someone is out of office for more than one day.

Also we created a property *Working days* in which we want to calculate working days between start and end day of vacation. In addition, you can add what days are non-working, for precise calculation.

![](https://extensionkit.unitfly.com/wp-content/uploads/2025/05/image-84.png)
Pic*ture 4. Configure calculation of working days*

Also, you can define that the system stops calculating holidays as working days, or simply choose the holiday that you don’t want to calculate.

![](https://extensionkit.unitfly.com/wp-content/uploads/2025/05/image-85.png)
*Picture 5. Exclude holidays*
