Question
Convert numerical response to piped time variable and operate on it
Hi everyone,
I am carrying a survey that asks respondents for a certain time, and then get responses based on that time. How can I do this? My intuition is that I could do that by converting numerical variables into a "date" kind of variable, but I'm not sure how to do this.
Let's assume, as an example, the following two questions:
Q1: At what time do you have to be at work?
[Hypothetical response: 11:50 AM]
(I am planning on using a Drill Down question for this)
Q2: Would you take the following trip?
Leave: Q1_time + delay - traveltime
Arrive: Q1_time + delay
Cost: $5
(Assume Q1_time, delay and traveltime are predefined variables.)
Displayed text:
Leave: 11:43 AM
Arrive: 12:05 PM
Cost: $5
I cannot simply use $e{MINUTES + 15} because that would return 11:65 AM. I know it is possible to operate on "date" variables (see "Piping Date / Time" here), but I'm not sure how I can convert my numerical variables to a certain time.
Thanks!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
