How to manage owner credits for due payments

How to deduct Due Amount from Owner Credit?