The maximum number of consecutive nights allowed for the rate to be active is set by the maximum stay setting.
To use a rate a "Gap Fill" set "Restriction StragetyStragegy" = "Gap Fill ("Summary tab of your RATE)
Maximum stay defines the maximum stay and also the maximum number of nights the gap must have.