In an automation, set delay in minutes from template value

Thx for the help.

So I get this error in the trace
Error: ValueError: Template error: float got invalid input ‘unknown’ when rendering template ‘{{ ‘00:{:02}:00’.format(states(‘sensor.DoorCloseDelay’) | float()) }}’ but no default was specified

This code I used for my purposes from: https://community.home-assistant.io/t/using-template-in-delay-in-automation/172151/3

It only works when I specify a default, it does not use the value of the sensor.

{{(((states('input_number.seasonaladjustment') | float(0)/ 100 ) * (states('input_number.standarddooropentime')) | float(0))| int)}}

seasonaladjustment : Value = 50
standarddooropentime: Value =2

What am I doing wrong.