added find_days_before