Industry code wrote

Code is written on if I will get off work early and checks for valid
entry. However gives to messages