# Configure Undertime Deduction in Payroll Processing

**YouTube:** [How to Configure Undertime Deduction in payroll processing?](https://www.youtube.com/watch?v=jnKn5LfnDr4)

## How to Configure Undertime Deduction in payroll processing?

In this tutorial, we will learn how to **configure and calculate Under Time** for payroll generation in **Logic ERP**.

***

### **Access to Grade Setup**

* Navigate to the **Main Menu** → **Payroll Setups** → **Setup Grades** window.
* Here, you can define **Under Time settings** for both **new** and **existing grades**.

Select the desired **Grade** and enable the checkbox:

> **“Use new calculation engine for overtime and undertime calculation.”**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FLsLtj18oGocOInw1LbuP%2FCalculation%20Engine.png?alt=media&#x26;token=09012c8c-e8de-434b-81d3-1da37cd4892d" alt=""><figcaption></figcaption></figure>

***

### **Configure Under Time Settings**

* Press the **Space Key** to open the configuration window.
* Now, follow these steps to define the under-time calculation rules:
  * **Enable Late Minutes Deduction** – to activate the deduction process for late arrival or early leaving.
  * **Allowed Late In Minutes:** Define the grace period from the shift start time.
    * Example: If set to **5 minutes**, no deduction will apply for delays up to 5 minutes. From the **6th minute onward**, the system will start calculating under-time deductions.
  * **Include Early Leaving in Late In Minutes Calculation** – enable this option if early departures should be included in under-time calculation.
  * **Allowed Early Leaving Time:** Define the allowed duration an employee can leave early without deduction.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FbTGNJETQJ1DP9JJU1Kqt%2FUT%20Calculation.png?alt=media&#x26;token=de06be1d-a132-49bc-8dbb-d96573ad2d3d" alt=""><figcaption></figcaption></figure>

***

### **Define Under Time Rate**

From the **Under-Time Rate as Field** dropdown, select how the deduction will be calculated:

* **Actual:** Choose this option for a fixed per-hour rate.
  * Example: If the under-time rate is set to ₹100, salary will be deducted at ₹100 per hour of under time.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FizOnvKRD1ciLgS46oq6F%2FUT%20Rate%20as%20Actual.png?alt=media&#x26;token=baaf0334-51eb-4d4a-8176-a043bc1ecc86" alt=""><figcaption></figcaption></figure>

* **User Defined:** Choose this option to base deductions on salary components.
  * Press the **Space Key** on **UT User Defined Rate Setting**, and tick the **Gross Components** (such as Basic, DA, or HRA) to be included in the under-time calculation.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FJZJzq3VKyjqRaQ70J9Wf%2FUT%20Rate%20as%20UD.png?alt=media&#x26;token=183cd2a4-0a05-4666-b0f8-babd7dc70539" alt=""><figcaption></figcaption></figure>

* Once all configurations are complete, click **OK** to save the settings.

***

### **Mark Employee Attendance**

* Navigate to **Payroll Entries** and then **Attendance Register**.
* Select the **Employee**, then define **Time In** and **Time Out**.
* For example:
  * Standard Shift Duration: 8 hours
  * Actual Worked: 7 hours and 40 minutes
  * Late Arrival: 20 minutes

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FYxxbRVqVXi6UDSKYAscM%2FLate%20Arrival.png?alt=media&#x26;token=ca0c56ac-b19a-4e97-ba92-132991adcbec" alt=""><figcaption></figcaption></figure>

* Save the attendance record after entering the details.

***

### **Generate Payroll**

* Next, navigate to **Payroll Entry** → **Payroll Generation**.
* Select the **Employee** and **Payroll Month**, then click **Recalculate**.
* The system will display the payroll details including:
  * **Under Time Hours:** 20 minutes (in this example)
  * **Under Time Deduction:** Automatically calculated based on the defined rate or user-defined formula.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FjnwMt6gRodeUtt3PMoE0%2FPayroll%20Generation.png?alt=media&#x26;token=8c0e1803-46c7-41f1-a6a3-0e8135b9e4ce" alt=""><figcaption></figcaption></figure>

***

### **Result**

You have successfully configured and calculated **Under Time** in **Logic ERP**.\
The system now automatically deducts the applicable amount during **Payroll Generation** based on the configured settings and attendance data.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.logicerp.com/logic-erp-installation-configuration-and-troubleshooting-solutions/faqs/payroll/configure-undertime-deduction-in-payroll-processing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
