Most pool filter sand lasts about 5-7 years, but that interval is a guide and the pool is the test. Replace it when clean pressure stays high after a proper backwash, when water will not clear with chemistry in range, or when the bed has channeled or hardened. Heavy commercial use shortens it.
You need a pH adjuster, an alkalinity increaser, calcium hardness increaser if the pool is soft, chlorine shock, and a long-life winter algaecide. The order matters more than the products: balance calcium and alkalinity a week before you close, hold pH slightly high, shock, then let chlorine fall back to normal before the cover goes on.
Identify the stain before you treat it, because metal and organic stains need opposite chemicals. Hold a vitamin C tablet against the mark: if it lightens, it is metal. Hold a chlorine tablet against it: if it lightens, it is organic. Metal comes off with ascorbic acid, organic with chlorine.
Draw the sample elbow-deep, at least 3 feet from a return line and away from the skimmer, before you add anything to the pool. Test free chlorine first because it changes fastest, then pH, alkalinity, and the slower readings. Use reagents that are inside their date, and write the numbers down at the pool.
Multiply length by width by average depth, then by 7.5 for a rectangular pool, or 5.9 for a round or oval one. The number most people get wrong is average depth: on a pool with a deep end, it is not the midpoint between shallow and deep unless the floor slopes evenly the whole way.
Chlorine kills algae; algaecide only prevents it or backs up a treatment, so pick by side effect rather than strength. Polyquat is the safe default - no staining, no foam, highest cost. Copper works but can stain plaster and hair. Quats are cheapest and foam if overdosed. A well-chlorinated pool usually needs none.