use calculatedTotalDue here too