Strange behaviour with next_alarm entity provided by HA App

This is the template I’m using

It doesn’t do anything more than change the format.
The strange thing is that some days it’s +1 min and sometimes -3 mins and anything in between.

I believe it’s a problem with jinja/HA not the app, to be clear.