Skip to content
Principal Software Engineer projects

Estimating

Pool Cover Estimator.

We built a quoting system for a pool cover company so that any estimator, not just the experienced few, could quote a cover correctly. Pick a shape and measure it, or use A-B measuring for a freeform pool. The overlap is added with vector math, the area comes from the outline, and the price follows the dealer’s place in the distributor hierarchy.

Pool Cover (pool + overlap) A B Grid: 1 ft

1 · Shape

2 · Measure

Freeform pools are measured from stakes A and B. Use the sheet under the drawing, drag the points, click near the edge to add one, or drag stake B.

3 · Overlap past the edge

4 · Cover

Estimator checks

    The vector math, live

    A-B measuring

    Two stakes and a tape measure turn any freeform pool into numbers. Each point is where a circle around A meets a circle around B.

    Vectors for the overlap

    Each edge is pushed out along its normal by the overlap. Neighboring edges meet at the new corner, so the cover is exactly 18″ (or whatever was ordered) bigger all the way around.

    Inherited pricing & rules

    Dealers sit under distributors, which sit under groups. Price levels and rules such as “free drain panel” or “minimum overlap” are inherited and can be overridden at any level.

    Prices, customers and rules are a demo. Written in strict TypeScript; runs entirely in your browser.

    The real project · 2007

    Quoting for a whole dealer network.

    We built this quoting system for a pool cover and liner company. Before it, only a small group of experienced estimators could build a quote, and that was the bottleneck. Afterwards the system caught the hard parts, the easy quotes went to newer estimators, and the company could grow.

    Pricing and business rules were easy to assign, inherit and override, so it stayed cheap to maintain. It was integrated with NetSuite.

    Covers by shape

    Pick the shape, measure the pool, get the price, with tips and warnings that guide the estimator along the way.

    AB covers, by vector math

    Two stakes and a tape measure any freeform pool. Vectors walk around the outline and add exactly the overlap the customer ordered, 18 inches or whatever it is.

    Liners in 3D

    The same problem as covers, in three dimensions: walls, floor, slopes and the deep end.

    Customers in a tree

    Distributor groups, distributors and dealers inherit pricing and custom rules from each other, and anything can be overridden.

    Pricing levels

    Dealers inherit their distributor’s pricing level unless it’s overridden. One SQL union and a stored procedure work out the final price, fast.

    Rules as products

    Custom rules were built like products, so they shared the pricing logic: an easy interface, and just as fast.

    The results

    • ✓Experienced estimators used where they mattered most
    • ✓More quotes in less time, so the business could expand
    • ✓Fewer quote-to-order mistakes
    • ✓Fewer mistakes in production itself
    • ✓Custom logic and fully flexible pricing for customers
    • ✓Still in service more than a decade later