A mortgage payment is calculated the same way as any amortizing loan — but the down payment matters a lot, since it directly determines how much you need to borrow.
What this doesn't include
This shows principal and interest only — real monthly housing costs usually also include property tax and insurance.