Reply To: Discount per price filter help

I’ve got almost the same problem. I try the following:

If a guest stay more then 22 days (3 weeks) I want to give a discount of 5%
If a guest stay more then 28 days (4 weeks) I want to give a discount of 10%
And if they stay more then 36 days (5 weeks) I want to give a discount of 15%

How can I fix this?

Thank you