@engineer,
P is the Principal amount of the loan
A is the Annuity, the EMI , the equal monthly instalment
n is the number of payments , 360 monthly payments in a 30 year loan payable monthly in arrears.
The formula equates the Principal to the net present value of the future payments by summing the geometric progression.