Back to examples More demos soon

Plan by the week

A manager’s view of a quarter: three teams, ten people, one cell per person and week. Each cell is the share of that person’s available time the plan books. Teams roll up their members. Click any week to see the days it is made of, and switch the week start between Monday and Sunday.

Week buckets from the engine

loadProfile with basis: "week" returns one bucket per week, starting at 00:00 on config.week_start. A bucket’s load is booked time divided by available time, so a part-time person at full load reads 100 %, the same as a full-time one. Weeks of leave have no capacity and stay empty. See Resource load.

Week buckets
// Week buckets start on config.week_start
// (0 = Sunday, 1 = Monday, the default).
project.solve({
  config: { week_start: 1 },
  calendars, tasks, resources, assignments,
});

const weeks = project.loadProfile({
  from: "2026-10-05 00:00",   // the first week start of the quarter
  to: "2027-01-04 00:00",     // buckets whose start lies in [from, to)
  basis: "week",
});
// weeks.resources[i].buckets[w] = { start, load, capacity },
// load as a rate: 0.6 = 60 %

What a week is made of

The drill-down reads the same plan as day buckets. The week value is the mean of the days weighted by each day’s available hours, not their plain average: the support team’s four-hour weekend shifts are fully booked, and they count half as much as an eight-hour weekday.

Team roll-up
// A team's week: the members' week loads weighted by their available hours.
// The load is a rate; the working minutes of each person's days
// come from calendarDays.
const minutes = person => project.calendarDays({
  calendar: person.id, from: "2026-10-05", to: "2026-10-12",
}).reduce((sum, day) => sum + day.minutes, 0);
const team = members.reduce((s, m) => s + m.minutes * m.load, 0)
           / members.reduce((s, m) => s + m.minutes, 0);

Monday or Sunday weeks

The week start is part of the scheduling config, so the switch solves the plan again with the new week_start and moves the range to the first Sunday or Monday of the quarter. The plan does not change, and each person’s booked hours over the quarter stay the same. What changes is where the weeks cut: a rota weekend’s Sunday belongs to the next week when weeks start on Sunday, so the support team’s weeks read differently.

The team load demo shows the same profile by day and by hour.