
The business needed estimates before the full portal was ready.
Dispatch asked for the estimating portion as a standalone tool so they could start using it before the rest of the portal was ready.
I delivered a polished standalone version in less than a week, with estimate history, Google Maps integration, and routing logic to avoid U.S. shortcuts beyond the original request.
It now serves as the company’s primary estimating tool. It supported nearly 100 estimates for vehicle deliveries scheduled during September 2026 alone.
Price the whole journey
An outbound distance is only part of the calculation. The driver may return in a trade-in, ride home with a chase driver, fly, take a bus, or rent a car. Trailer delivery and a handoff between drivers change the work again.
The calculator combines Google Maps routing with the relevant driver pay, fuel consumption and price, overnight lodging, return transport, service fees, and business rounding rules. Outbound and return stops can be edited separately.
Canadian route planning
When Google Maps suggests a shortcut through the United States, the app can add Canadian waypoints automatically and prefer routes that stay in Canada. The added waypoints appear in the route’s stops, where dispatch can review and edit them.
Make the assumptions visible
Changing the delivery or return option updates the breakdown. A comparison view puts expected costs, the quoted estimate, and net amounts beside each other. Dispatch can copy a client-facing summary of the quote.
For example, choosing a return flight removes the return driving stops and fuel calculation, and introduces the flight ticket and pay for the driver’s time spent flying. Those are separate costs, with different effects on the estimate.

Keeping history queries small
History queries load summary fields rather than every saved trip. Full estimate details are fetched only when an estimate is opened, and route polylines are excluded from saved history. Browsing previous quotes therefore avoids transferring large map payloads that may never be viewed.
Keep the calculation dependable as it changes
Pricing logic lives in a pure calculation function, separate from route requests and the interface. Regression fixtures cover the business formulas and delivery options, so a change to one rule can be checked against existing examples.
GitHub Actions runs tests and type checks, and Vercel and Convex handle deployment. I applied test-driven development from CPSC 210 to the estimator’s pricing rules.
The business’s primary estimating tool
The estimator became the business’s primary estimating tool while the larger portal was still being developed.