Added trialDuration

Calculate the duration of the trial and add that to the structure.