Visual Basic has some built in financial calculations.
The following is how I would code it in VB. Any thoughts on C# equivalent? It is computing a payment amount for a loan.

Payment = Pmt(APR2 / 12, TotPmts, -PVal, FVal, PayType2);