The totalMinutes() method returns the duration converted to minutes.
DayPilot.Duration.totalMinutes()Returns the duration converted to minutes. If the duration includes seconds or milliseconds, the result is a fractional number.
const minutes = new DayPilot.Duration("2020-01-01T00:00:00", "2020-01-05T12:30:15").totalMinutes(); // 6510.25