i would like to do two “simple” calculations in a rule an would be glad, if someone could help me at this point.
I have already read the topic of comparing and converting dates and times, but the relationships are quite complex.
It would be great, if anyone could help me to finish the rule.
Thanks in advance,
rule "calculation" when Time cron ..... then var Number Kilometer = 123 var ??? date = 31.12.2022 item1.sendCommand( (date - today) * Kilometer ) item2.sendCommand( ((date - today) * Kilometer ) + 2500 ) end