Calculations within Repeating Section

  • 10 February 2016
  • 3 replies
  • 2 views

Badge +6

Hello everyone. I need help with the below scenario

I have a repeating section that has 3 fields, Start Date(Date and Time) and End Date(Date and Time) and Hours(Calculated Value). What I want is for this calculated value to automatically populate with the result of (End Date - Start Date). Outside and below the repeating section, there's also a calculated value that displays the Total of all hours under the repeating section.


3 replies

Badge +6

Additional Info: Maybe this is not the best approach for my problem. What I am trying to achieve here is a form that will be used to calculate Total Overtime worked for employees. Each record should be in a new line with Date, Start Time, End Time and Total Hours worked. The reason why I chose repeating section is because records will vary per user.

Userlevel 5
Badge +14

that's quite easy.

for single rows calculate hourly difference out of your date fields

and for total simple sum up over the difference field

result:

Badge +6

Thanks cool.png

Reply