The permutation calculator determines the number of possible ways to select an ordered subset of r elements from a set of n elements.