Invoice finance vs a business term loan — which fits the gap?

Invoice finance and term loans solve different cash-flow problems. How each works, what each costs, a side-by-side worked example, and a plain rule for choosing between them.