marcq
Member
Hi,
I have created a form in which I'm calculating an arrival time based on a Start Time and a Duration Field.
I have created the two following fields
1. Start Time -> dropdown -> values 08:00 | 08:30 | 09:00 etc.
2. Arrival time -> calc -> calculation 1 + 2
Calculation Field in Calc Element :
I'm missing something since no value is calculated.
I would appreciate some help.
Thanks in advance.
Cheers,
Marc
I have created a form in which I'm calculating an arrival time based on a Start Time and a Duration Field.
I have created the two following fields
1. Start Time -> dropdown -> values 08:00 | 08:30 | 09:00 etc.
2. Arrival time -> calc -> calculation 1 + 2
Calculation Field in Calc Element :
PHP:
$start = {nep_booking___book_starttime};
$duration = 3; // 3 hours
$end = strtotime($start) + $duration * 60;
return date ('H:i', $end );
I'm missing something since no value is calculated.
I would appreciate some help.
Thanks in advance.
Cheers,
Marc