Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Timestamp calculations? Help?!

Featured Replies

I have to be missing something really obvious here.

I have fields timestamp1 & timestamp2 and I need something like this..

timestamp1 - timestamp2 = hours worked

So I can do the hours worked * rate calcualtion. But for the life of me I can not figure out how to do timestamp math with filemaker.

Help? please?

Thanks!

-jim lee

Jim:

Timestamps are calculated in seconds, so to show the number of hours' difference between two timestamps you would do:

(ModificationTimestamp - CreationTimestamp) / 3600

This is the time difference / (60 secs x 60 minutes), to put it into hourly terms.

-Stanley

Lets say you have the following fields:

timestamp_start

timestamp_end

rate

A calc field can be used to calculate the total amount of hours and minutes worked. It would be timestamp_end - timestamp_start, with a Time result. Lets call this cTimeWorked

Then to calculate the rate, you have to determine how many minutes are relevent to what you consider as being payable. So since most contracters bill to the last quarter hour, we can accommdate for that.

Here is the calc you can use for it.


Hour ( cTimeWorked ) * rate + 

Div ( Minute ( cTimeWorked ); 15 ) * .25 * rate

  • Author

Thanks!! That was just the ticket.

Everything is working now.

-jim lee

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.