Boltzmann's formula: S = k_B ln Ω, where Ω is the number of microstates. For N two-level spins with E up-spins: Ω = C(N,E). The entropy peaks at E = N/2 (maximum disorder), tracing the foundations of statistical mechanics.
Ω = C(20,10) = 184756 S = k_B ln(184756) = 12.13 k_B