if (myFilter.getNextDays() > 0) {
Date dateOfPayment = entry.getDateOfPayment();
if (dateOfPayment == null) {
dateOfPayment = today.getSQLDate();
}
if (dateOfPayment.before(today.getDate()) == true) {
// Entry is before today:
if (myFilter.getPaymentStatus() == PaymentStatus.PAID || entry.isPaid() == true) {
// Ignore entries of the past if they were paid. Also ignore unpaid entries of the past if the user wants to filter only paid
// entries.
continue;