The formula \(\frac{n(n-1)}{2}\) is used to calculate the number of matches in a single league tournament, where \(n\) is the total number of teams. This is the standard formula for a round-robin tournament where every team plays against every other team. In an even-numbered team setup, this formula calculates the total number of pairings or matches that can be held.