Demand & availability forecasting
Compare supplied demand with modeled availability and already scheduled work. Time buckets report coverage and shortfall so an application can explain where the plan is covered, at risk, or under-resourced.
Loading interactive demo…
What you configure
- forecastDemand
- Set the requested start/end interval and bucketMinutes.
- demand
- Supply projected demand intervals, units, and resource IDs.
- resources / events / profiles
- Keep capacity, scheduled load, and shift policies current.
Essential integration
This assumes the shared Quick start already provides premiumLicense and, for UI views, premiumCalendarOptions. Only the feature-specific setup is shown.
import { AdvancedResourcePlanner } from '@wts-calendar/core/advanced-resource-planning';
const planner = new AdvancedResourcePlanner({
license: premiumLicense,
timeZone: 'UTC',
resources: [
{ id: 'design', title: 'Design studio', capacity: 2 },
{ id: 'engineering', title: 'Engineering', capacity: 4 },
],
events: [
{
id: 'review',
title: 'Design review',
resourceId: 'design',
start: '2026-09-07T09:00:00Z',
end: '2026-09-07T10:30:00Z',
},
],
});
export const forecast = planner.forecastDemand({
start: '2026-09-07T08:00:00Z',
end: '2026-09-07T18:00:00Z',
bucketMinutes: 60,
demand: [
{ start: '2026-09-07T08:00:00Z', end: '2026-09-07T12:00:00Z', units: 3 },
{ start: '2026-09-07T12:00:00Z', end: '2026-09-07T18:00:00Z', units: 8 },
],
});
console.table(forecast.buckets);
console.log('Coverage', forecast.coveragePercent);Behavior and lifecycle
- Each bucket combines peak demand, existing scheduled load, and modeled availability.
- Results distinguish covered, at-risk, and shortfall states.
Limits and responsibilities
- This is deterministic capacity analysis, not a statistical or AI prediction of future demand.
- The forecast is only as current as the demand and availability inputs you supply.
Premium
Enable this capability
- Optional module
- @wts-calendar/core/advanced-resource-planning
- Local capability ID
- advanced-resource-planning · enabled by package-wide Premium
Use the request form to describe your project and deployment origins. Pricing and terms are confirmed privately. A WTS license is separate from provider credentials; do not send passwords or production access tokens.
The live example uses a browser-visible deployment key restricted to this package and approved origins. It does not collect license keys or visitor credentials.