Day long script


I have 2 items sunset and sunrise, and want to know how many hours is this day. Also how many hours have before sunset.

I try with some formulas but time date items are not working like math. and i don’t what to do.

Not that I will be able to give a ready-made solution, but I believe that the info in these threads will help you resolve your issues:

Mong others, you will see in these posts how to convert timestamps into milliseconds, which you can then use in any calculation you want.