+ Reply to Thread
Results 1 to 5 of 5

How to work out number of 'days' worked based on total hours

  1. #1
    Forum Contributor tangcla's Avatar
    Join Date
    06-04-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    136

    How to work out number of 'days' worked based on total hours

    So I have a situation where we work out the number of base, overtime at 1.5x and overtime at 2x for a job which is charged in number of hours. A full day is 12 hours, any additional hours is in a second day.
    From 0-8 hours is base rate, 8-10 hours is OT1.5 and 10-12 is OT2
    Examples:
    A job at 21.5 hours would be 16x base, 3.5x OT15 and 2x OT12.
    A job at 26.54 hours, would be made up of 18.54x base, 4x OT15 and 4x OT2

    What formulas or functions can I use to automatically tell me how many hours of base, OT15 and OT2 are needing to be billed?
    Last edited by tangcla; 01-20-2016 at 10:03 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: How to work out number of 'days' worked based on total hours

    I'm not sure how you arrive at those breakdowns in your two examples. For the first example, with a 12-hour day the first day would be 8 + 2 + 2 and the second day would be 8 + 1.5 + 0, so your totals should be 16 x base, 3.5 x OT15 and 2 x OT2. The second example does follow the same reasoning.

    Please clarify.

    Pete

  3. #3
    Forum Contributor tangcla's Avatar
    Join Date
    06-04-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    136

    Re: How to work out number of 'days' worked based on total hours

    OK, I spent some more time and worked it out, I got it!

    Let's use the first example I got above. 21.5 hours
    Firstly, I converted hours to decimals by dividing by twelve. = 1.79
    The decimal points of the resulting number:
    8 hours: 0.67 (8/12)
    10 hours: 0.83 (10/12)
    12 hours: 1 (12/12)

    I then used if/and formulas to return me the value that falls within each band, and add the integer of the number to get me my full days.

    Base: 16 hours
    OT15: 3.5 hours
    OT2: 2 hours

  4. #4
    Forum Contributor tangcla's Avatar
    Join Date
    06-04-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    136

    Re: How to work out number of 'days' worked based on total hours

    Quote Originally Posted by Pete_UK View Post
    For the first example, ...
    Hi Pete, you're right - typo - fixed, and solved!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: How to work out number of 'days' worked based on total hours

    OK, this is how I worked it out with Excel formulae - assume the total hours are in A2, with column B for Basic hours, column C for OT15, and column D for OT2, then these formulae can be put in the cells stated:

    B2: =8*INT($A2/12)+MIN(8,MOD($A2,12))

    C2: =2*INT($A2/12)+MAX(MOD($A2,12)-8,0)

    D2: =2*INT($A2/12)+MAX(MOD($A2,12)-10,0)

    Put other totals in A3, A4 etc., then copy the formulae down.

    Hope this helps.

    Pete

+ 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. Find the total by day of hours worked based on two workbooks
    By jbeets in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2015, 01:33 AM
  2. Replies: 3
    Last Post: 07-21-2013, 05:45 PM
  3. [SOLVED] Average hours worked based on days worked during a pay cycle
    By jaycee66 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-14-2012, 06:27 PM
  4. Replies: 3
    Last Post: 02-24-2012, 12:30 PM
  5. Total hours worked based on two time entries
    By avidcat in forum Excel General
    Replies: 6
    Last Post: 07-29-2011, 08:43 AM
  6. Calculate Work Days Based on Hours Worked
    By FM1 in forum Excel General
    Replies: 7
    Last Post: 02-04-2009, 12:27 PM
  7. Replies: 0
    Last Post: 08-23-2005, 12:33 PM

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