The calculation rounded a day offset down. In PHP, zero from that step could be represented as the floating-point value 0.0, which the existing validation missed. I corrected the value handling and separated the two date checks.
The diagram uses synthetic date boundaries. An identical candidate can pass one check and fail another when the lower bounds differ.
I added regression tests for both paths. Testing the shared calculation kept the fix focused on the value used by both the preview and the external request.
One candidate date, two lower bounds