Tech Spec

How Park Math gathers prices and turns them into a Walt Disney World trip estimate and payment timeline. As of August, 2026.

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 scopeOut of scope
Walt Disney WorldOther Disney resorts
Estimating and comparing trip costsBooking or payment
Resort room-only rates and park ticketsFlights and transportation to Orlando
Add-ons, spending budget and payment timingRoom types, pass blockout calendars, ride planning and reviews
SourcesDisney price servicesDisney web pagesBundled data filesPanel lookupsRooms, one night at a timeTickets for a date rangeContent scriptsPrices already on screenResort id directorydata/*.jsonRules and resort listDated hand-entered figuresPrice store (chrome.storage.local)Cached nights, tickets, page prices, resort idsPricing core (src/core), shown in the side panelTrip total, hotel comparison, flexible dates, split stays, budgeting
The side panel fetches live prices, combines them with bundled data and prices the trip on the device.

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.

PartResponsibility
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

PermissionUsed for
sidePanelShowing the planner beside the page
storageKeeping the trip and cached prices on the device
tabsFinding an open Disney tab and reading context from the current one
Disney site accessPrice 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.

FetchedRooms and tickets,asked of Disneyfor your datesRead from a pageRoom prices alreadyrendered on a pageyou openedEntered by handDining plans, charactermeals, annual pass,extrasEstimated or chosenLightning Lane isprojected. Spendingis your budget.Trip quoteEach part is its own lineA missing required price leaves a visible gap
Each kind of figure keeps its own origin.
FigureSourceKept in
Room rates and current offersFetched per night, or read from a pagePrice store
Park ticketsFetched per start date, length, age group and add-onPrice store
Dining plansEntered by hand for each plan yeardining.json
Character mealsEntered by hand, with base, tip and taxcharacter-dining.json
Annual pass price and passholder room offerEntered by handdiscounts.json
Resort mug and theme park parkingEntered by handextras.json
When payments fall dueBooking rules from published summariespayments.json
Lightning LaneDated third-party averages, projected forwardlightning-lane.json
Spending moneyA per-person daily allowance by spending stylespend-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.

Side panelRoom price serviceTicket servicePrice storewhich dates are already held?answered nights, ticket datesone night, your partyevery listed resortwait 2.5 seconds,repeat per nightrequest a guest tokenshort-lived tokenprice calendar for the rangelengths, ages and add-onssave nights, asked dates, ticketsre-price the tripfrom the cache
One button fetches rooms, then tickets, and caches both.
  • 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.

Cached nights (each lookup returns every resort Disney quotes)Night 1Resort A: priceResort B: priceNight 2Resort A: priceResort B: priceNight 3Resort A: priceResort B: priceNight 4Resort A: priceResort B: priceNight 5Resort A: priceResort B: priceOne hotelResort A, nights 1 to 5Sum of five nightly pricesSplit stayResort A, nights 1 to 2, thenResort B, nights 3 to 5priceStay()A stay or stop is priced only when its nights are covered
Because nights are cached one at a time, hotels and splits can be re-priced without new lookups.
  • 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.

Trip descriptionParty, dates, hotels, park days and add-onsquoteTrip()HotelOne stay or split stopsTicketsMinus annual passholdersDining planPrice for the trip yearCharacter diningTable credits appliedSpending moneyYour daily allowanceExtrasParking and mugsLightning LaneProjected from dated averages, only for the parks and rides you pickQuoteLines, tax, total, per person, gaps, warnings, notes
One function turns the trip description into every line and the total.
RuleBehavior
Missing room, ticket or dining plan priceListed as missing, and the quote is marked incomplete
Park HopperPriced as its own ticket product
Ticket limitsUp to 10 days. Children are 3 to 9, and under 3s need no ticket.
Annual pass already heldHolders are removed from ticket purchases. The pass isn't charged again.
Dining plan with character mealsTable-service credits cover meals where enough remain; the tip is still charged
Spending moneyPer person per day by age group, counting nights plus one day. Dining plan and passholder settings can lower it.
ExtrasRules 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.

ToolWhat it does
Hotel listPrices 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 staysPrices each stop as its own booking and adds them. Stops run back to back, and exact dates are required.
Flexible datesTries 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 upgradeCompares the pass price with the ticket it would replace and any spending discount. A possible passholder room offer is shown separately.
Account ratesOffers 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.

TimeAt bookingRoom deposit perbooking (one nightand tax), pluspark ticketsLightning Lane day7 days before check-infor resort guests,3 days before firstpark day otherwiseAt check-inRest of eachhotel billDuring the tripDining, charactermeals, extras andspending moneyStart savingWhole estimate ÷ monthly payments before check-inRounded up to the dollarWithin 30 days of arrival, the whole stay is due at booking.
The same total is split by when the money is needed. The savings figure is shown separately.
  • 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.

ActivityWhat is sent to Disney
Standard room lookupDate and party details, without your Disney cookies
Ticket lookupDate range and a guest token, without your Disney cookies
Reading prices on a pageNothing extra
Checking account ratesIf a Disney tab is open when the panel opens, a request from that tab using your signed-in session
Account-rate room lookupA 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.

CheckCovers
233 pricing checksPricing rules and the logic in the core
43 structural checksProblems 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 harnessRuns the real panel in a browser page with Chrome and Disney responses simulated, including rate limits, offline, sold-out and ticket-error cases