Tech Spec
How Park Math gathers prices and turns them into a Walt Disney World trip estimate and payment timeline. As of August, 2026.
Contents
Overview
Park Math is a Chrome side panel that estimates what a Walt Disney World trip costs. It brings hotel, park tickets, dining, Lightning Lane, extras and spending money into one running total, then shows when that money is needed.
This is an as-built spec: it describes the extension as the code works today (version 0.8). Why it exists, who it is for and where it could go are covered in the case study and PRD.
Park Math is an independent concept project. It is not affiliated with, authorized by or endorsed by The Walt Disney Company. Disney and related names and marks are trademarks of The Walt Disney Company and are used here only to describe the subject of the project. Prices it shows give a picture of total trip cost and don't guarantee what you will pay.
| In scope | Out of scope |
|---|---|
| Walt Disney World | Other Disney resorts |
| Estimating and comparing trip costs | Booking or payment |
| Resort room-only rates and park tickets | Flights and transportation to Orlando |
| Add-ons, spending budget and payment timing | Room types, pass blockout calendars, ride planning and reviews |
Architecture
The extension is built on Chrome's Manifest V3 in plain JavaScript modules. It has no build step, no third-party libraries and no server of its own.
| Part | Responsibility |
|---|---|
Side panel (src/panel) | Trip inputs, price fetching and display. Holds the trip state. |
Pricing core (src/core) | Dates, price parsing, the price store, pricing, comparison and payment timing. It doesn't depend on Chrome or the page, so it runs under plain Node. |
Service worker (src/background) | Makes the toolbar button open the panel, saves what the content scripts send, and carries older stored prices forward after the project's rename. |
Content scripts (src/content) | Read the resort directory and prices from Disney pages you open, offer trip details from the page address, and make account-rate requests. |
Data files (data) | Resort list, published rules, tax rates and dated hand-entered or observed figures. |
Permissions
| Permission | Used for |
|---|---|
sidePanel | Showing the planner beside the page |
storage | Keeping the trip and cached prices on the device |
tabs | Finding an open Disney tab and reading context from the current one |
| Disney site access | Price lookups and the content scripts |
Where figures come from
A trip total mixes live prices with figures that can't be looked up. The design keeps their origins apart, and the panel labels hand-entered figures, estimates and budgets.
| Figure | Source | Kept in |
|---|---|---|
| Room rates and current offers | Fetched per night, or read from a page | Price store |
| Park tickets | Fetched per start date, length, age group and add-on | Price store |
| Dining plans | Entered by hand for each plan year | dining.json |
| Character meals | Entered by hand, with base, tip and tax | character-dining.json |
| Annual pass price and passholder room offer | Entered by hand | discounts.json |
| Resort mug and theme park parking | Entered by hand | extras.json |
| When payments fall due | Booking rules from published summaries | payments.json |
| Lightning Lane | Dated third-party averages, projected forward | lightning-lane.json |
| Spending money | A per-person daily allowance by spending style | spend-styles.json |
- Rooms and tickets are never estimated. If a price hasn't been fetched or observed, the total shows a gap and says what is missing.
- Hand-entered figures are dated. Updating one means editing a data file; no code changes are needed.
- Tax is explicit. Room tax is 12.5% and admission tax is 6.5%, each stored in a data file.
The one projection
A Lightning Lane price for a trip months away hasn't been set yet, so leaving it out would understate the total for anyone planning to buy it. Park Math projects it, only when you choose it, and calls it an estimate.
- Multi Pass (a day at one park) and Single Pass (one headline ride) are priced separately.
- The yearly rate of change is worked out from two dated averages for each product. It isn't stored as a number.
- Each park and ride starts from its own observed price level and moves at its product's rate.
- You get a warning if the projection reaches further ahead than the history behind it, or if your choices exceed what the park days or purchase limits allow.
Fetching prices
Nothing is fetched while you change inputs. The Show Prices button works out the nights from the trip you've described, says how many are left to fetch, and then looks them up.
- One night per request. Each answer covers every resort Disney quotes, so it can be reused for any of them.
- Paced and capped. Room requests are 2.5 seconds apart, and one run covers at most 21 nights, because Disney limits rapid requests.
- Answered nights are remembered separately from prices. This tells apart a night that was never fetched from one where the resort was full.
- Partial runs are kept. If a request is refused, nights already received are saved. A ticket failure doesn't discard room prices.
- Tickets are efficient. A token request and a calendar request cover the date range, all ticket lengths and the add-on types, so changing park days or Park Hopper needs no new lookup.
- Offers come from the response. The difference between the regular and offered rate is added up night by night.
- Refetching is explicit. You can clear and fetch the current nights again when you want fresh prices.
Reading pages you open
Browsing Disney's site is optional. When a resort list shows a dated search, a content script records the room prices on screen without making any request. It decides from the price label whether a figure is per night or for the whole stay, and drops a price whose label it doesn't recognize. Undated starting prices are ignored.
Room responses identify resorts by number. The extension ships a map from those numbers to resorts and can refresh it from the resort list page.
Price store and stays
Fetched room prices are cached by resort, night, party size and rate. A stay can also be composed from its individual nights.
- Nights keep their own rates. Weekend and weekday differences aren't averaged away.
- Gaps aren't filled. A composed stay needs a price for every night.
- Versioned data. When the stored price format changes, older prices are dropped and the resort map is kept.
Trip pricing
quoteTrip() in src/core/trip.js takes the trip description and the stored data and returns the full quote. The headline total, the hotel list, flexible dates and budgeting all build on it.
| Rule | Behavior |
|---|---|
| Missing room, ticket or dining plan price | Listed as missing, and the quote is marked incomplete |
| Park Hopper | Priced as its own ticket product |
| Ticket limits | Up to 10 days. Children are 3 to 9, and under 3s need no ticket. |
| Annual pass already held | Holders are removed from ticket purchases. The pass isn't charged again. |
| Dining plan with character meals | Table-service credits cover meals where enough remain; the tip is still charged |
| Spending money | Per person per day by age group, counting nights plus one day. Dining plan and passholder settings can lower it. |
| Extras | Rules in the data file decide whether an item is charged, included or not charged |
Comparing options
Comparisons run on cached and bundled data, so they don't send new requests.
| Tool | What it does |
|---|---|
| Hotel list | Prices each listed resort for the same dates, cheapest first, and names those it can't price. You can rank by the offer rate or the rate without the offer. |
| Split stays | Prices each stop as its own booking and adds them. Stops run back to back, and exact dates are required. |
| Flexible dates | Tries each check-in date in a travel window and ranks dates with room prices. With no hotel chosen, it picks the cheapest for each date. |
| Annual pass upgrade | Compares the pass price with the ticket it would replace and any spending discount. A possible passholder room offer is shown separately. |
| Account rates | Offers rates your signed-in Disney account is listed as eligible for, and caches them separately from standard rates. |
Budgeting
A total says what the trip costs. Budgeting says when the money is needed. It uses room-only booking rules and requires exact dates.
- Deposits use real nights. A deposit is the first night of that booking, with tax. Each split-stay stop has its own.
- The schedule must add up. If the payment rows don't match the trip total, an error is shown instead of a schedule.
- Incomplete means a minimum. If a required price is missing, the monthly savings figure is marked as a floor.
- Packages differ. Dining plans are sold with Disney packages, which have their own payment terms; the panel notes this.
Storage and privacy
The trip and the price cache are kept in Chrome's local extension storage on your device. Park Math has no accounts, analytics or server, and requires no sign-in for standard prices.
| Activity | What is sent to Disney |
|---|---|
| Standard room lookup | Date and party details, without your Disney cookies |
| Ticket lookup | Date range and a guest token, without your Disney cookies |
| Reading prices on a page | Nothing extra |
| Checking account rates | If a Disney tab is open when the panel opens, a request from that tab using your signed-in session |
| Account-rate room lookup | A request from an open Disney tab using your signed-in session |
The extension's code doesn't read your sign-in cookies. For account requests, the browser attaches them as it does for the Disney site. Details offered from the current page are applied only when you press Use.
Testing
npm test runs two suites under Node without third-party packages. As of this spec, both pass.
| Check | Covers |
|---|---|
| 233 pricing checks | Pricing rules and the logic in the core |
| 43 structural checks | Problems that can break an extension quietly, such as missing files, mismatched element ids or messages, and rules that keep copied logic or data files consistent |
| Test harness | Runs the real panel in a browser page with Chrome and Disney responses simulated, including rate limits, offline, sold-out and ticket-error cases |