How to calculate night hours worked automatically
Calculating the hours worked each day is easy with any spreadsheet: simply subtract the arrival time from the departure time (a formula such as B1-A1). Calculating the hours worked at night, on the other hand, is far more complex, as several calculations and different cases have to be handled: arrival before midnight and departure before midnight, arrival and departure before or during the start of the night hours, a night period that may vary…
Planningify® offers users of the full version a new night-hours calculator that is easy to set up and use, and that can also be used to work out day hours and pay supplements.
Depending on the company, the employment contract and the collective agreement, it is therefore possible to determine automatically the additional pay and the time off in lieu earned through night work, and also to check whether the employer respects the maximum number of night hours that must not be exceeded.
Example 1: Calculate the number of hours worked between 9pm and 6am
Go to “Schedule options”, “Calculated columns” Enter the following information:
- Title: Night
- Formula: DURATION_INTERVAL(#ARRIVAL1#, #DEPARTURE1#, 21 * 60, 06 * 60) + DURATION_INTERVAL(#ARRIVAL2#, #DEPARTURE2#, 21 * 60, 06 * 60)
- Type: Number
- The number of hours is displayed in minutes, for example 130 minutes; in a future version it will be possible to use the time format, for example 02:10
- Formula type: “Days”
To view the results, then go to Menu, Reports and then “Week with comments”, “Month with comments” or “Year”.
Example 2: Calculating earnings with an hourly wage of 12.50$ and a 25% supplement for night hours
- Title: Salary
- Formula: 12.50 * (#DURATION# + 0.25 * (DURATION_INTERVAL(#ARRIVAL1#, #DEPARTURE1#, 21 * 60, 06 * 60)) + DURATION_INTERVAL (#ARRIVAL2#, #DEPARTURE2#, 21 * 60, 06 * 60) )
- Type: Number