to save as much money as it cost
The rail pass will pay for itself after about two trips.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition