Write a Python function to calculate the number of possible permutations for a given input array.
[2, 1, 3]
from math import factorial 
  
def calculate_permutations(arr): 
    n = len(arr) 
    return factorial(n) 
  
result = calculate_permutations([2, 1, 3])
print(result)