Hammer out a deal hammer a deal out

To make a deal or agreement by discussion and debate.

We worked hard to hammer out a deal with our company about our holiday schedule.