use calculatedMinimumDeposit instead of totalDue