The events.totalDuration() method returns the total duration of all events in the row.
DayPilot.Row.events.totalDuration()Returns a DayPilot.Duration object representing the combined duration of all events in the row.
const row = dp.rows.find("R1");
const total = row.events.totalDuration();