Which is gramatically correct?
"Even though when I was there,they would not have to spend extra money"
"Even though when I had been there, they would not have to spend extra money"