You had the car for a month and it has spent 3 weeks in the shop. I would tell them they owe you a months car payment.
Do you specifically know what the failed part is?
I once had a safety related issue on a new style GM car that needed a part that was not in the parts pipeline yet. It was the turn signal switch had broken internally. It was right about that time I got the call from GM to see how I liked my new car after owning it for a month. I explained the problem and got a call from the dealer a few minutes later saying that they were ordered by GM to come and pick up my car with a flatbed, and that same flatbed would deliver a loaner, and they were to cannibalize a new car on the lot to get the part I needed. They should never have let me drive home with no turn signals.
2018 Trax LT AWD
2015 Trax LS AWD Sold