Time-Based Math (Duration) uses two date/time questions to calculate a duration. These types of questions are often used to calculate hours worked in a timesheet form, using a clock-in time and a clock-out time.
Time Based Math is restricted to Date/Time Data Types, and therefore the Data Type selection is not shown.
- Restrictions: Hidden on Device, Hidden on Reports
Precision: Choose what units of time you want to calculate. The default is "Hours and Minutes". As you switch between options, the form builder will show or hide the minimum/maximum value and default value to match.
- Please note that precision settings will affect the output of the question. This means that any later questions will inherit the output of these questions. Using incorrect precision settings for your use case (such as using only Hours for a timesheet form) will result in unexpected values. Please ensure that you use the appropriate precision setting for your use case.
Min/Max Value: Set a minimum and maximum value based on the units chosen in your Precision setting.
Calculate a Duration
This is where you can set the source questions for the duration calculation.