Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Speaking of time..


Data Dud
 Share

Recommended Posts

I have a "Volunteer Hours Log" that, among other things, logs my volunteer hours. I'm having a little problem trying to calculate subtracting "End Time" from "Start Time". I'm using the 24hr format so when, for instance, the individual starts at 0800 and ends at 1300 my result is 500. I'm sure the solution is simple but for some reason tonight I can't see the forrest for the trees... Any help would be kindly appreciated.

 

Thanks

Link to comment
Share on other sites

Try

Let([

s_hr = Left(Start Time; 2);

s_min = Right(Start Time; 2);

e_hr = Left(End Time; 2);

e_min = Right(End Time; 2)];

If( not IsEmpty(e_hr);

(Time(e_hr; e_min; 0) - Time(s_hr; s_min; 0))/3600 ; ""

)

)

 

This will give you decimal hours. If you ever start volunteering on one day and finish the next, this will not work. You will have to do a similar calculation with Timestamp instead of Time.

Edited by doughemi
Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use