How to Use an Excel Formula to Calculate Overtime and Double Time (3 Methods)

Dataset Overview

Let’s say we have a dataset containing an employee’s Entering and Existing Time on certain Dates. We want to calculate the Overtime and Double Time for that employee.

Dataset-Calculate Overtime and Double Time


Differentiate Between Overtime and Double Time

  • A full-time employee typically works 8 hours a day as part of normal working hours.
  • If an employee works more than 8 hours, we need to distinguish between two scenarios:
    1. Overtime: This refers to the count of working hours beyond the standard 8 hours. Overtime is typically compensated at a rate of 1.5 times the normal working hours.
    2. Double Time: In some states (such as California in the USA), if an employee works more than 12 hours in a day, they are subject to double time. Double time means the hourly rate is twice the normal working hours.

Method 1 – Using IF and MIN Excel Formula

Calculate Working Hours:

  • Subtract the “Entering Time” from the “Exiting Time” for each date.
  • Since Excel displays the result in days, multiply it by 24 to convert to hours:
=(D7-C7)*24

IF MIN formula-Calculate Overtime and Double Time

  • Press ENTER and drag the Fill Handle to find the working hours for individual dates.

Fill handle

Calculate Normal Work (NW):

  • Use the following formula in a blank cell (e.g., F7):
=IF(E7>8,8,D7-C7)
  • This ensures that employees meet their required working hours (8 hours).

Formula insertion- Calculate Overtime and Double Time

  • Press ENTER then drag the Fill Handle to display whether the employee fulfills the normal hours or not.

Normal work

 

Calculate Overtime:

  • In another cell (e.g., G7), use the following formula:
=IF(E7>8,IF(E7<=12,E7-8,MIN(E7-8,4)),0)
  • Explanation:
    • If Hours Worked > 8, check if it’s less than or equal to 12.
    • If true, subtract 8 hours (normal work hours) from the total.
    • If false, calculate the minimum value between (Hours Worked – 8) and 4 (maximum allowed overtime after 8 hours).
    • If Hours Worked <= 8, display 0 hours as Overtime.

Overtime formula insertion

  • Press ENTER and drag the Fill Handle to display the Overtime values.

Overtime

Calculate Double Time:

  • Enter the following formula into any cell where you wish to show the Double Time value (e.g., H7):
=IF(E7>12,E7-12,0)

In this formula, the IF function evaluates whether the working hours are greater than 12. If true, it subtracts 12 from the hours; otherwise, it displays 0.

Double time formula insertion

  • Press ENTER and drag the Fill Handle to display the Double Time hours as shown in the following image.

Overtime and Double time hours-Calculate Overtime and Double Time


Method 2 – Combined MIN and SUM Functions

In this method, we’ll use the combined MIN and SUM functions to calculate overtime and double time. We’ll assume that the “Time Worked” hours are already calculated as part of the dataset.

Calculate Normal Working Hours (NW):

  • Use the following formula in any adjacent cell (e.g., F7):
=MIN(E7,8)

This ensures that the normal working hours do not exceed 8 hours.

IF SUM formula-Calculate Overtime and Double Time

  • Press ENTER then Drag the Fill Handle to see whether normal working hours are met or not.

normal working hours

Calculate Overtime:

  • In another cell (e.g., G7), use the following formula:
=MIN(E7-F7,4)
  • Explanation:
    • If the total hours worked (E7) minus normal working hours (F7) is greater than 4, consider only 4 hours as overtime.
    • Otherwise, use the actual difference between the two.

Overtime calculation

  • Press ENTER and drag the Fill Handle to show the Overtime hours.

Overtime hours

Calculate Double Time:

  • Subtract the sum of normal working hours (F7) and overtime (G7) from the total hours worked (E7):
=E7-SUM(F7:G7)

The formula subtracts Normal Work and Overtime from Time Worked hours.

Double time calculation

  • Press ENTER and drag the Fill Handle to get the Double Time values similar to the picture below:

Double time


Method 3 – Excel IF and SUM Excel Formula

In this method, we’ll consider weekly working hours. If an employee works more than 40 hours in a week (5 working days), it’s considered overtime. If the total working hours exceed 60, it’s double time.

Dataset-Calculate Overtime and Double Time

Calculate Total Weekly Working Hours:

  • Use the SUM function to add up the “Time Worked” hours for the week (E9:E13):
=SUM(E9:E13)

Working hour sum-Calculate Overtime and Double Time

  • Press ENTER to calculate the total working hours.

Total working hour

Calculate Overtime:

  • In the Overtime column, use the following formula (e.g., H9):
=IF(SUM($E$9:E9)>40,SUM($E$9:E9)-40,0)
    • If the total weekly hours exceed 40, subtract 40 to find the overtime hours.
    • Otherwise, display 0.

Extra hours

Calculate Double Time:

  • In the Double Time column (e.g., G9), use this formula:
=IF(SUM($E$9:E9)>60,SUM($E$9:E9)-60,0)
    • If the total weekly hours exceed 60, subtract 60 to find the double time hours.
    • Otherwise, display 0.

Double time calculation

Calculate Actual Overtime:

When the Time Worked exceeds 65 hours and the total Extra Time amounts to 25 hours, only 20 hours can be designated as Overtime. To calculate the actual Overtime in cell G14, enter the following formula:

=IF(E14>60,MIN(F13,20),MIN(F13,20))

Overtime hours

This formula ensures that the Overtime is capped at 20 hours, regardless of whether the Total working hours exceed 60 or not.

Overtime-Calculate Overtime and Double Time

If you want to display the Double Time along with Time Worked and Overtime, enter =G13 in the G14 cell.

Total worked, overtime, and double time-Calculate Overtime and Double Time


Download Excel Workbook

You can download the practice workbook from here:


<< Go Back to Overtime | Formula List | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Maruf Islam
Maruf Islam

MARUF ISLAM is an excellent marine engineer who loves working with Excel and diving into VBA programming. For him, programming is like a superhero tool that saves time when dealing with data, files, and the internet. His skills go beyond the basics, including ABACUS, AutoCAD, Rhinoceros, Maxsurf, and Hydromax. He got his B.Sc in Naval Architecture & Marine Engineering from BUET, and now he's switched gears, working as a content developer. In this role, he creates techy content... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo