There is a tutorial available that shows how to calculate the summary/utilization details using methods like events.forRange(). This project displays the totals in a special frozen row but you can use the same approach with the time header.
Thanks for the helpful explanation.
How can I determine whether the onBeforeTimeHeaderRender event is triggered for a weekly or monthly header cell? I need to apply different calculations depending on the time scale level?
Comment posted by Dan Letecky [DayPilot] 1 years ago.
The args.header.level property stores the row number (starting at 0 for the first row from the top).
You can also use args.header.start and args.header.end to get the duration:
const duration = new DayPilot.Duration(args.header.start, args.header.end);
const days = duration.totalDays();