payment payable and outstanding calculation done