to (one's) advantage
In a way that benefits one. They turned the buyout deal to their advantage by working in a clause wherein they would receive pro rata compensation for earnings from merchandising. I know you're disappointed about the delay, but I think this can actually work to our advantage.
to somebody’s adˈvantage
so that somebody benefits: The rise in the value of the pound will work to the advantage of those planning a trip abroad this summer.