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