What to expect
Treat seven days as an allocation, not a race: day 1 arrival without a fixed visit; day 2 Cusco; day 3 one valley visit; day 4 Ollantaytambo; day 5 travel to Machupicchu Pueblo; day 6 Machu Picchu; day 7 return travel. Shift the allocation when admission and transport require something different.
How it fits into a journey
Compare admission dates with outward and return transport first, then choose where to stay. Do not add a distant excursion to your return day. For a full spare day, extend the trip or leave out an earlier visit.