yayayay logic for flexible dates really works now