get_slot_usage function

Get time slot usage of a schedule