I finally got around to fixing my time math, and consolidated it all into a single value procedure (hh_mm_ss). Here is the new code:
(I got the idea to consolidate the time math into a single value procedure, after replacing an old ceiling fan with a new fan boasting of a greatly reduced parts count to ease installation.)







