When is the state of barzakh?

Recording Angels, the Angel of Death, and Questioning and Punishment in the Grave