I need help creating a survey to keep track of overtime hours for my job

Hello, good afternoon everyone, Iā€™m new here :smiley:
I need help creating a survey to keep track of overtime hours for my job.
The form itself is already created, but I need to know how to make it calculate overtime hours when selecting the entry and exit times.
For your consideration:

  • Monday to Thursday: After 6:30 PM is considered overtime.
  • Friday: After 2:00 PM is considered overtime.
  • Saturday and Sunday: After 8:00 AM is considered overtime.

Welcome to the community, @maxiromero! You should be able to do it as outlined in the image shared below:

In the survey tab of your XLSForm:

In the choices tab of your XLSForm:

Data entry screen as seen in Enketo: for Monday

Data entry screen as seen in Enketo: for Tuesday

Data entry screen as seen in Enketo: for Wednesday

Data entry screen as seen in Enketo: for Thursday

Data entry screen as seen in Enketo: for Friday

Data entry screen as seen in Enketo: for Saturday

Data entry screen as seen in Enketo: for Sunday

Reference XLSForm:

Overtime Calculation.xls (39 KB)

1 Like

Good morning,
Honestly, your response was very helpful!
Thank you so much!
I just have one more question. In the survey, when selecting Saturday or Sunday, the time starts counting from 8:15 AM, which causes me some confusion.
Is there any way to fix this?
Thank you in advance for your help!

@maxiromero, you can also manually enter the minutes when entering time. That should solve your issue.