How Much You Can Borrow

Works backwards from the payment you can afford to the loan it supports. It is the fixed-instalment formula solved for the principal.