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.

Featured Replies

Here's my problem...

I need to calculate this and get an amount at the end of the process:

8:00 (time field) (time worked) * $30.00 (number field) (hourly rate) = $240.00

It messes up when a field calculates a time field by a number field.

The solution would be $240 and would be automatic.

Thanks all for you help.

Version: v6.x

Time values are stored as seconds. You need to divide the time by 3600 to get hours. So your calculation should be:

time field / 3600 * hourly rate

The "time" field should really be a number field.

A bit of understanding about time and date fields is required here. Dates are stored as "number of days since 1/1/0001". Time is stored as "number of seconds since midnight". So multiplying a time field by a number will produce unexpected results. (Meaningless results in fact: it's like asking what's 30 times 8:00 pm.)

You need to either have a field that stores the "number of hours worked" (note how I described it, "hours" not "time") or have people enter a start time and a finish time and get FMP to calculate the hours worked.

If you decide to enter start and finish times, remember that you also need to track the start and finish dates too otherwise weird results occur when somebody works past midnight. Remember that time fields are stored in seconds so you need to divide by 3600 to convert them to hours. Similarly, date fields are stored in days so you need to multiply by 24 to get hours out. The final calculation might be:

((FinishDate - StartDate) * 24) + ((FinishTime - StartTime) / 3600)

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.