DEPCHEF NZEC Runtime Error

Would anyone be able to help out? I am not sure why I keep getting NZEC Runtime Error.
my attempt at a solution