im running into a issue i can’t seem to get the payment total math formula right can anyone help me in (code) the formula to calculate the monthly mortgage payment
THIS IS HAVE I HAVE:

Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCalculate.Click
Dim decLoan As Decimal
Dim decInterest As Decimal
Dim decYear As Decimal
Dim decLoanTotal As Decimal

decLoan = Convert.ToDecimal(InputLoan.Text)
decInterest = Convert.ToDecimal(CDbl(InputInterest.Text) / (100 * 12))
decYear = Convert.ToDecimal(CDbl(InputYears.Text) * 12)

decLoanTotal = CDec((decInterest * decLoan) * ((1 + decInterest) ^ decYear) / ((1 + decInterest) ^ decYear) – 1)

LblResult.Text = FormatCurrency(decLoanTotal.ToString)
Please do so i really would love to see it

I attempted to send you the code for a complete application I wrote . It is too long so I cant send it in this media. I will email it to you. If I have to, I put it in 2 emails.

TexMav