I would like to know, if the following sentence can ever be correct in any context?
How long were you at work?
Or it must be:
How long had you been at work?
How long were you at work yesterday.
I guess I cannot use present perfect here (the past is specified). Is my guess correct?