In contrast, now() will produce a value containing the current time. The time difference between tomorrow at 00:00:00 and today (at any time after 00:00:00 today) is less than a full day. That’s why it reports 0 days.
This reports 1 day because today_at() produces today’s date at 00:00:00.
{% set d = ('2025-04-27' | as_datetime | as_local - today_at()).days %}
{{ d }}