@Override
    public void renderResults(List<AmortizeDetail> paymentSchedule) {

        if (paymentSchedule.size() > 0) {
            Double totalInterestPaid = 0d;
            Double totalPrincipalPaid = 0d;

            printHeader();

            for (AmortizeDetail paymentDetail : paymentSchedule) {

                totalInterestPaid += paymentDetail.getInterestPaid();
                totalPrincipalPaid += paymentDetail.getPrincipalPaid();

                printRow(paymentDetail, totalInterestPaid, totalPrincipalPaid);
            }
        }
    }