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.

Calculation from time started, hours worked

Featured Replies

Hi, I need help generating a calculation. I am creating a scheduling database and in an effort to save time and eliminate error i would like the user to input the amount of hours projected to work and the start time. From those two fields i would like to generate the end time automatically. Can someone please help me out. i'm using field names: start time, hours, and end time.

There may not be enough information. Is this a straight calculation or does it need to wrap around work hours and work days? Do you need to add in for breaks etc...

example

StartDate = Friday, April 7th 2006

StartTime = 2pm

Hours = 12

End Time = ;)

a) April 8th 2am?

:( April 10th 2pm( 9-5, Mon - Fri workweek)

c) April 10th 2:30pm(9-5, Mon - Fri workweek with a thirty minute lunch)

d) some other rules apply and the date and time are completely different.

  • Author

This is a straight calculation, no work hours etc. the answer should be 2 am for your setup there. i want it to calculate the 2 am response. is that possible?

Edited by Guest

Try:

Mod ( StartTime + Duration ; 86400 )

Set the result to type Time.

If you want to input duration as the number of hours instead of time, use:

Mod ( StartTime + Hours * 3600 ; 86400 )

Edited by Guest

  • Author

I guess i can put the start time as HH:MM AM/PM, Hours as HH:MM and end time as HH:MM AM/PM. how would i do that if using hours as a time instead of a number? The above calculation did not work. It only output the start time.

The first formula requires StartTime and Duration to be Time fields.

The second formula requires StartTime to be a Time field, and Hours to be a Number field.

The output is Time, in both.

If you prefer to input data as text, you will need to convert it to time before plugging it into the formula.

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.