The ofDays() method returns a DayPilot.Duration instance representing the specified number of days.
DayPilot.Duration.ofDays();
DayPilot.Duration class
var day = DayPilot.Duration.ofDays(1);