How long is a tour of duty in Afghanistan?

It depends on the circumstances.

There is no such thing as a 'tour of duty' except as a public relations exercise.

Service people know this, only civilians would ask.