Mortgage balance calculation