How the countdown works
An earlier target time means tomorrow. Matching times give zero seconds. Leave the starting time blank for an automatic live countdown. Enter a starting time to calculate a fixed interval.
Example
From 14:30 to 18:00 there are 3 hours and 30 minutes. From 23:40 to 00:10 there are 30 minutes.
Method
Subtract the starting time from the target in seconds. If negative, add 86,400 seconds for one day.