Determination of gain formula.
For an ideal op-amp: The output due to each input is: von = -Rf/Rn vn