A metal roof calculator works out how many metal roofing panels and screws you need, scaling your footprint up by the pitch and dividing by each panel's coverage width and length. It's built for exposed-fastener panels (the common ribbed/corrugated DIY type).
The trap with metal is coverage width: a 36-inch sheet only covers about 34-35 inches once it laps the next panel. This uses coverage width so you don't come up a panel short.
Roof area = footprint × √(1 + (rise/12)²). Panels = roof area × waste multiplier ÷ (coverage width × panel length). Screw estimate ≈ 80 per square for exposed-fastener panels with screws at the ribs. Standing-seam uses concealed clips instead of field screws.
An 1,800 sq ft roof with 36 in × 12 ft panels (3 ft coverage) needs about 55 panels with 10% waste, and ~1,440 screws.