How long did a soldier live in World war 1?

depends in if they were killed or injured