Calculating borrowing capacity: see how it’s done