How we calculate +−
Both sides spend the same. Each month, whichever side costs less puts the difference into savings, and savings grow at your return on savings. So the two totals compare like with like.
Selling at the end. If you buy, the home is sold at the end of your stay: its value, minus the loan still owed, your selling costs and any cost you pay once when you sell.
Mortgage rate. The rate box starts empty. Enter the rate a lender quoted you, or one you want to try.
Your own costs. A cost paid a month or a year rises once a year by its increase; a yearly cost is grown first, then split into twelve. A cost paid once when you buy is added to the cash needed to buy. A cost paid once when you sell comes out of the sale, in today's dollars, not grown.
The formulas behind every tool are on How we calculate.