calculate_flight_earnings
Estimate the ELITE-QUALIFYING points a flight earns toward status — British Airways Tier Points, Air France/KLM Flying Blue XP, or American AAdvantage Loyalty Points — plus the great-circle distance. Answers 'how many tier points is LHR–JFK in business?' and 'how many BA tier points for a £600 fare?'. Tier Points and Loyalty Points are revenue-based (pass fare_price); Flying Blue XP is fixed per segment by distance + cabin. Use program slugs: 'british-airways-executive-club', 'air-france-klm-flying-blue', 'american-aadvantage'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cabin | No | Cabin: economy, premium, business, or first. | economy |
| origin | Yes | Origin airport IATA code, e.g. 'LHR'. | |
| program | Yes | Qualifying program slug: 'british-airways-executive-club', 'air-france-klm-flying-blue', or 'american-aadvantage'. | |
| segments | No | Number of flight segments/legs (multiplies Flying Blue XP). Default 1. | |
| fare_price | No | Fare price for revenue-based programs (BA Tier Points, AA Loyalty Points). Base fare + carrier surcharges, excluding taxes. | |
| destination | Yes | Destination airport IATA code, e.g. 'JFK'. | |
| fare_currency | No | ISO currency of fare_price (e.g. GBP, USD, EUR). Defaults to the program's home currency. |