I'm trying to figure out how to calculate all the possible combinations for a given set of elements. I want to know the method or formula that can help me determine the total number of combinations, considering different scenarios like with or without repetition, and the order of elements mattering or not.