web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Calculate total hours ...
Power Automate
Answered

Calculate total hours between two times flow for SharePoint column

(0) ShareShare
ReportReport
Posted on by 1,712

Hello everyone !

 

I have a list in SharePoint which contain EmployeeName, CheckInTime, CheckOutTime, Status, Total Worked Hours columns.

The employees will use the mobile flow apps.

When the employee check-in it will create a new item in the list showing the current Date include time,and on check-out it will modify the item, update the status to check-out, and it will update the CheckOutTime  to current date include time.

 

When the users checkedout, the flow should trigger the user he checkedout and calculate the total worked hours between the 2 different columns (CheckInTime & CheckOutTime) and update the column showing the total of hours he worked for.

Example:

               Suppose that the user CheckedIn at 8:04 and Checkedout at 9:04. It should show 1 HOUR text and maybe he checked for couple of minutes is it possible to show 30 Minutes.

 

Here is my list:

Capture.PNG

 

Here is the flow:

CaptureI.PNG

 

What i should add to the flow to achieve it and what are the expressions i should use ?

Can you please provide an example ?

 

Thank you!!

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Julien2 ,

     

    You could use SharePoint calculated column to calculate the time difference.

    Like:

    55.PNG

     

    Best Regards,

  • EBMRay Profile Picture
    1,712 on at

    Thank you!

  • Applasaurus Profile Picture
    51 on at

    This formula works with time calculated within the same day but anything over 24hours is only taking the time into consideration for example:

     

    CheckIn - 18/02/2020 8:00am   CheckOut - 19/02/2020 12:00pm and it's giving me a total of 04:00 rather than 16:00

     

    any ideas on what I need to do to the formula to show this?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard