How to apply owner credit to cover due invoices

How to deduct Due Amount from Owner Credit?