The teacher has the discretion on whether to allow a late student to enter the class. The academic department and/or teacher concerned may decide equivalencies between tardiness and absence, say, three instances of tardiness as equivalent to one absence. If you are more than ten minutes late for class, you are considered absent.
Whenever a teacher is not present at the beginning of a class, you are obliged to wait for at least fifteen minutes before leaving.