PS;
You might need a pre-tax 4%-5% return to have it make sense to not pay off your mortgage if that’s your only concern.
Another factor for anyone considering paying off their mortgage,
depending on your Schedule A itemized deductions,
without mortgage interest expense, the standard deduction may be larger than property taxes & state income taxes and it could make the net result even more attractive.