See this topic: Get difference from now() to last changed in minutes - Configuration - Home Assistant Community (home-assistant.io), although you want the other way around as your date’s in the future.
The work is being done for you in the card: if you click the “next alarm” text then the cog, it’ll show you what entity it’s working from.