Skip to content
Principal Software Engineer projects

Estimating

Pool Liner Estimator.

Liners are the same problem as covers, in three dimensions. Set the pool’s size and its depth profile: the shallow end, the slope and the deep-end hopper. You’ll get the vinyl for the floor and every wall, the water it holds, and a price. Drag the pool to turn it.

Side profile · shallow end to deep end

Size & depth profile

Pattern

Vinyl thickness

Estimator checks

    Area along the slope

    The floor isn’t flat. Each part of the profile is measured along its slope, so the vinyl covers the real surface, not just the footprint.

    Walls follow the depth

    Side walls are the area under the depth profile; end walls are the width times the shallow and deep wall heights.

    Water from the same math

    The space under the profile, less 6″ of freeboard, times the width gives cubic feet. At 7.48 gallons per cubic foot, that’s the fill.

    Rectangular pools with an end-to-end hopper profile; prices 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