The quota you set for a lab is for each student for entire duration of the lab. And, the scheduled running time of VMs doesn't count against the quota allotted to a user. The quota is for the time outside of schedule hours that a student spends on VMs. For more information on quotas, see Set quotas for users.
Hope this information helps.