Load of a trainer
trainer_loadCounts a trainer's sessions and billed days for a given YYYY-MM month from engagement records, helping you assess monthly workload and billing.
Instructions
Count the sessions a trainer is engaged for in one month, and the days billed for them, from the trainer engagements. A session belongs to the month it starts in.
Engagements are recorded up to mid-October 2026: a later month returns zero.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | Yes | Month, as YYYY-MM (2026-10). | |
| trainer_id | Yes | Id of the trainer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Days billed by the trainer for those sessions. | |
| month | Yes | ||
| sessions | Yes | Engagements of the trainer in sessions starting that month. | |
| trainer_id | Yes |