Fixed second condition in booking_today_or_past to compare actual datetime to appt datetime instead of comparing datetime.day. Was causing error when appointment is in future month (e.g. comparing today 28 < future 2).