How is an EMI calculated?

EMI Formula: l x r [(1+r)n /(1+r)n-1 ] x 1/12
l = loan amount
r = rate of interest
n = term of the loan