воображаемой, гипотетической ситуации в прошлом: If you had been there, you would have done the same. –