Calculating total time of clock on

Hi Everyone,

I am trying to make a clock on and clock off the employee tracking app. This means that the employee will clock on and then they will clock off and as a result, there should be a length shown and a rate.

But I am struggling to get the time in hours between Clock On and Clock Off.

Also, once I collect that length of time I also need to add it to their total length of time. Which should all be displayed on their profile

Potentially​ I need to set up a “workday” which has a clock on time and a clock off time. Then I can calculate the time of this “workday” in hours.

Following this, I want to be able to add all the hours from all the “sessions” to determine the total worked hours.