This page explains how to create last minute prices.
A last-minute-rate can be created using Max days until check-in in the rates.
The setting defines how many days in advance this rate is bookable. For example a setting of 0 will allow this rate to be booked for a stay tonight. A setting of 3 means this rate is only available at least 3 days before the first night of the booking.