Somewhat sloppy, but working version of reasonable_date