MORTGAGE LOAN CALCULATOR


Contract Price:
Down Payment (%):
Years to Pay:
Interest Rate Per Annum (%):

Calculate your Mortgage Loan using this mortgage calculator. It's important to calculate mortgage monthly amortization payment to know how much you can afford for investing house & lot, car or other loans.

C# code snippet how to get Monthly Amortization

C# Source Code Close
    //-Specify constant values
    int INTEREST_CALCS_PER_YEAR = 12;
    int PAYMENTS_PER_YEAR = 12;

    //-Create variables to hold the values entered by the user
    decimal P = obj.contract_price;
    double r = obj.int_rate_per_annum / 100;
    int t = obj.years_to_pay;
    double d = obj.down_payment / 100;

    double ratePerPeriod;
    ratePerPeriod = r / INTEREST_CALCS_PER_YEAR;

    int payPeriods;
    payPeriods = t * PAYMENTS_PER_YEAR;

    decimal dDownPayment;
    dDownPayment = P * (decimal)d;
    dFinanceAmount = P - dDownPayment;

    //-Monthly Amortization
    double costPerMonth;
    costPerMonth = ((double)dFinanceAmount * Math.Pow((r / 12) + 1, (payPeriods)) * r / 12) / (Math.Pow(r / 12 + 1, (payPeriods)) - 1);