The formula
Liner length = the pond's longest length + 2 × the deepest depth + 2 × the overlap. Liner width = the widest width + 2 × the deepest depth + 2 × the overlap. The depth counts twice because the liner goes down one side and up the other. Underlay (fleece) is cut the same size.