The DEFINITION of a genereal n by n determinant is this: form all possible products taking one number from each row and column. There will be n! ways to do this. If you write the terms so that the numbers are in order of the columns, the row numbers will be a permutation of 1,2,3...n. Multiply each product by -1 if this is an odd permutation, 1 if even permutation, and add.
The simplest way to calculate it is row reduce as Jhageb suggested.
Second simplest way is to "expand by minors".