+ Reply to Thread
Results 1 to 5 of 5

Calculation of ordinary hours, daily and period overtime

  1. #1
    Registered User
    Join Date
    02-01-2022
    Location
    Australia
    MS-Off Ver
    Office 2016
    Posts
    2

    Lightbulb Calculation of ordinary hours, daily and period overtime

    Hi Guys and girls!
    I am hoping you may be able to help with an excel formula to calculate, ordinary hours, overtime (time and a half and double time). Overtime is calculated daily and period.
    Hope it is possible in excel.
    Any help would be greatly appreciated.
    I have attached example.

    Monday to Friday
    • First 10 hours between 7am and 10pm are classed as “Ordinary Hours”
    • Then first 3 hours are overtime as “Time and a Half”
    • Every hour after is overtime as “Double Time”
    Saturday from 8am to 8pm, first 3 hours are overtime as “Time and a Half”
    Sunday from 8am to 8pm all hours are overtime as “Double Time”
    Calculation of Overtime – daily and period
    • Daily Overtime is calculated over 10 hours outside 7am to 10pm schedule
    • In Addition, “Period Overtime” kicks in after ordinary hours accumulates to 38 hours per week and calculated for the rest of the hours as.
    o First 3 hours are overtime as “Time and a Half”
    o Every hour after is overtime as “Double Time”

    What is the excel formula to calculate the end time based on start time, break and duration please?
    Day Start Time Break End Time Total Hours
    Monday 7:00 0.45 ? 7.60


    What is the excel formula to calculate the duration based on start time, break and end time please?
    Day Start Time Break End Time Total Hours
    Monday 7:00 0.45 15:21 ?

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,484

    Re: Calculation of ordinary hours, daily and period overtime

    Welcome to the forum.

    Throughout the worksheet you have a mix of proper time values and regular number values (e.g. 7.6) - this mish mash needs sorting out for starters. EVERYTHING needs to be in proper time (hh:mm) format.

    Once resolved, then for your two questions:

    AliGW on MS365 Insider (Windows) 64 bit

    B
    C
    D
    E
    F
    29
    What is the excel formula to calculate the end time based on start time, break and duration please?
    30
    Day Start Time Break End Time Total Hours
    31
    Monday
    07:00
    00:45
    15:21
    07:36
    32
    33
    What is the excel formula to calculate the duration based on start time, break and end time please?
    34
    Day Start Time Break End Time Total Hours
    35
    Monday
    07:00
    00:45
    15:21
    07:36
    Sheet: Sheet1

    E
    31
    =C31+D31+F31
    Sheet: Sheet1

    F
    35
    =E35-C35-D35
    Sheet: Sheet1

    I am not sure if this is precisely what you want, given the level of detail you gave, but you'll have to let us know if not.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,484

    Re: Calculation of ordinary hours, daily and period overtime

    On the other hand, if you want this:

    AliGW on MS365 Insider (Windows) 64 bit

    B
    C
    D
    E
    F
    29
    What is the excel formula to calculate the end time based on start time, break and duration please?
    30
    Day Start Time Break End Time Total Hours
    31
    Monday
    07:00
    00:45
    15:21
    7.60
    32
    33
    What is the excel formula to calculate the duration based on start time, break and end time please?
    34
    Day Start Time Break End Time Total Hours
    35
    Monday
    07:00
    00:45
    15:21
    7.60
    Sheet: Sheet1

    then use these:

    E
    31
    =C31+D31+(F31/24)
    Sheet: Sheet1

    F
    35
    =(E35-C35-D35)*24
    Sheet: Sheet1

    In the attached I have cleaned up your dataset so that cells that need time formatting have it.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-01-2022
    Location
    Australia
    MS-Off Ver
    Office 2016
    Posts
    2

    Re: Calculation of ordinary hours, daily and period overtime

    Hi Aligw,
    Thank you for your help, yes that answers the two questions on calculating the end time.
    However the main question is on how to calculate the ordinary time and overtime as per initial question below.
    Example expected outcome is on the spreadsheet that was attached columns F, G, H and I.
    I have clarified the question and re-attached the sheet called Daily and Period Overtime V2.
    Hope this helps. Let me know if you need more information please.

    Monday to Friday
    • First 10 hours between 7am and 10pm are classed as “Ordinary Hours”
    • Then first 3 hours are overtime as “Time and a Half”
    • Every hour after is overtime as “Double Time”
    Saturday from 8am to 8pm, first 3 hours are overtime as “Time and a Half”
    Sunday from 8am to 8pm all hours are overtime as “Double Time”
    Calculation of Overtime – daily and period
    • Daily Overtime is calculated over 10 hours outside 7am to 10pm schedule
    • In Addition, “Period Overtime” kicks in after ordinary hours accumulates to 38 hours per week and calculated for the rest of the hours as.
    o First 3 hours are overtime as “Time and a Half”
    o Every hour after is overtime as “Double Time”

    Many thanks once again.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Calculation of ordinary hours, daily and period overtime

    As AliGW stated mismatching times and decimal numbers gets confusing, so I converted columns F:I to time using the custom format [h]:mm
    The formula for column F is: =E4-C4-D4
    The formula for column G is: =IF(OR(B4="Saturday",B4="Sunday"),0,MIN(F4-IF(SUM(G$3:G3,F4)>=38/24,SUM(G$3:G3,F4)-38/24,0),"10:00"))
    The formula for column H is: =IF(B4="Sunday",0,IF(B4="Saturday",MIN(F4,"3:00"),MAX(0,MIN(F4-G4,"3:00"))))
    The formula for column I is: =F4-SUM(G4:H4)
    Note that there are some differences between the results of the formulas and the manually placed values, which I highlighted in gray.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculate Overtime hours from daily hours
    By fuziduck in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-29-2017, 06:39 AM
  2. [SOLVED] Question regarding daily overtime calculation...
    By jamesewells in forum Excel General
    Replies: 2
    Last Post: 10-16-2015, 01:44 PM
  3. Hours worked on Different Shifts - Breakdown on overtime and ordinary
    By Rangedale in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2015, 12:50 AM
  4. [SOLVED] Need Formula to Calculate Overtime from Daily hours for a whole week
    By KazzICC in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-13-2014, 08:05 PM
  5. Timesheet formula for calculating ordinary hours and overtime hours.
    By zoen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-18-2011, 04:23 AM
  6. Calculating overtime hours on a daily and weekly basis
    By Skwerl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-05-2011, 09:12 PM
  7. [SOLVED] create a timesheet to add daily and weekly hours and overtime
    By molemo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-26-2006, 03:03 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1