A payment is a stream, and the loan is its present value
An ordinary loan calculator takes an amount and produces a payment. This runs the same relationship the other way: your monthly budget is treated as a stream of payments, and the maximum loan is the present value of that stream discounted at the loan rate over the term.
That inversion is the useful one when you are shopping rather than confirming. It answers the question a borrower actually has — what can I take on — instead of the question a lender asks after the amount has already been chosen.