How far in advance should you book Lima to Cusco flights?

If you travel in the high season (July to August) or in the dry season (May to October), you will have to buy one month in advance. However, as there are many daily flights, there will be no problem getting flights in the same week.