The endTime property of the TextTrackCue interface returns and sets the end time of the cue.
endTime
MDN Reference