This function calculates the workload generated by a manufacturing schedule for each resource and compare it with the available capacity.