...if test = 0 then
(datediff(d,DateTimeValue({Case.date_entry},{Case.time_entry})),(DateTimeValue ({Report.date_signed_out},{Report.time_signed_out})* 24
else
(datediff(d,DateTimeValue({Case.date_entry},{Case.time_entry})),(DateTimeValue ({Report.date_signed_out},{Report.time_signed_out}) -...