George, keep in mind if the program will 24 hours, the SECONDS() will return value smaller then lnstart after midnight.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.