# Long-rent rates

Available onBooking

Setting up long-rent discounts in the old configuration panel tends to be a bit confusing for people. The new Booking flow makes it easier. This article is for people that still use the old configuration panel.

Interactive calculator

## Example

Let's start with an example: You want to rent a place for a certain amount. When the booking is for 1-6 nights, you want to charge the full amount. When the booking is 7 nights or longer, you want to give a 10% discount. Finally, when the booking is 14 nights or longer, you want to give a 25% discount.

To configure this we need to setup the following long-rent adjustments:

• On night 7, we want to give a discount of 10%, and we want to give a discount of 10% on the previous 6 nights: in total we want to give a 70% discount on that night. Hence, we need to add a long-rent adjustment of x30% on night 7.
• On nights 8 - 13 we just want to give a discount of 10%. Hence we need to add a long-rent adjustment of x90% on night 8-13.
• On night 14 we want to give a 25% discount on that night and an additional 15% (25% - 10%) discount on the previous 13 nights: in total we want to give a 220% discount on that night. Hence we need to add a long-rent adjustment of x-120% on night 14.
• On night 15-... we just have to give a discount of 25%. Hence we need to add a long-rent adjustment of x75% on night 15-...

### General case

To give discounts of `p1`, `p2`, ..., `pn`, percent when a booking lasts `d1`, `d2`, ..., `dn` or more days add the following long-rent adjustments:

```x(100)%                                  on day d1
x(100 - p1 - (d1 - 1) * p1)%             on day (d1 + 1)
x(100 - p2)%                             on day (d2 + 1)
x(100 - p2 - (d2 - 1) * (p2 - p1))%      on day d2
...
x(100 - pn - (dn - 1) * (pn - p(n-1)))%  on day dn
x(100 - pn)%                             on day (dn + 1)```