Fixed bug in e-mail reminders

A bug in the naming of a variable caused an exception when the
due in days was < 2 but greater than 0.