The Jewish Sabbath begins at sunset each Friday and ends at nightfall each Saturday evening.
Likewise, Jewish festivals begin at sunset the evening before and conclude the following evening at nightfall.
During Shabbat and major festivals a Jewish person is not permitted to work, cook, transact any business, sit any examination, ride in a vehicle, use any tools, electrical or mechanical equipment, handle money, write, etc. and they should be allowed to leave work, school, etc. so they can get safely home before the beginning of Shabbat or festivals.