"If it was not Office-1, I would have taken leave" - is this correct?

“If it was not Office-1, I would not have taken leave” - is this correct?

“If it was Office-2, I would have taken leave” - is this correct.

.
I don’t know what they mean, but:

[i]If it had not been Office-1, I would not have taken leave.

If it had been Office-2, I would have taken leave.[/i]