Decide if buying the city pass is worth it for this trip by computing per-person and group break-even and savings.
Inputs:
- Destination: Destination
- Travelers: Travelers
- Pass and itinerary details:
<pass-and-itinerary>
Pass And Itinerary
</pass-and-itinerary>
Do this:
1) Parse pass name, duration, price per person (specify adult/child if provided), currency, included attractions with gate prices, usage limits; parse planned itinerary with attractions and dates.
2) Match planned attractions against pass-included attractions by name; exclude items not covered by the pass from pass value but include their prices under pay-as-you-go if relevant.
3) Per person, compute:
- Pay-as-you-go for planned included attractions.
- Pass cost.
- Difference and percent savings.
4) Break-even (per person): sort planned included attractions by gate price (high to low); find the smallest number whose cumulative sum meets or exceeds the pass price. If planned value is below the pass price, list additional highest-priced included attractions not yet planned needed to break even.
5) Multiply by traveler count for group totals.
Output exactly this structure:
1) Summary
- Destination: <city>
- Travelers: <n>
- Pass: <name>, <duration>, <price pp>, <currency>
2) Price list used (included attractions)
- <Attraction> - <price>
...
3) Comparison (per person)
- Pay-as-you-go (planned included attractions): <amount>
- Pass cost: <amount>
- Difference: <amount> (<percent>)
4) Break-even (per person)
- Count to break even from planned: <N> (list attractions used in order)
- If not at break even: add <k> more (suggest: <attraction(s)>)
5) Group totals
- Pay-as-you-go: <amount>
- Pass total: <amount>
- Savings: <amount>
6) Recommendation
- Buy or Skip with one-sentence rationale.
7) Notes
- Missing prices (excluded from math): <list or none>
- Assumptions/limits: <brief>
Constraints:
- Use the pass currency consistently; round to 2 decimals.
- Only include attractions with known prices in calculations; list missing under Notes.
- Be concise and objective.
<example>
DESTINATION: London, UK
TRAVELERS: 3
PASS_AND_ITINERARY:
- Pass: London Explorer Pass, choose 4 attractions, £89 adult pp, £64 child pp, currency GBP.
- Included attractions with gate prices: Tower of London £34, Westminster Abbey £29, St Paul's £25, View from The Shard £32, Thames River Cruise £25.
- Itinerary (2 days): Day 1: Tower of London, Westminster Abbey. Day 2: The Shard, Thames River Cruise.
</example>