Correct the grammar problems in this sentence.
When was the last time I really wanted to go there and I managed money anyway I could?
When was the last time I really wanted to go there, and I managed to spend money if I could?