Jump to content

Time lapsed - with no end time and on the fly?


This topic is 2489 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have 2 fields, time in and time out that are filled in when a user clocks in or clocks out.

I'm trying to create a 3rd field that calculates the lapsed time. If there is no end time then the field should (get current time) so these hours are calculated on the fly.

Here is my field calculation so far:

Case( Time Out; Time Out - Time In;

IsEmpty (Time Out); Get( CurrentTime ) - Time In )

Link to comment
Share on other sites

Your calculation is a little awkward because it checks the same thing twice, but other than that it should work. Of course, any calculation that uses Get ( CurrentTime ) must be unstored. This may add unnecessary burden on reporting. Consider keeping the calculation stored, e.g. as =

If ( Time Out ; Time Out - Time In )

and displaying the alternative calculation as a placeholder.

Edited by comment
Link to comment
Share on other sites

This topic is 2489 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.