Hi Scampy
Perhaps
CH1_on_Time = (lightsetHR1*60)+lightsetMN1
lightsetHR1=lightsetHR1/60 ' you get the integer part your example =14
lightsetMN1=CH1_on_Time - lightsetHR1 ' what remains is always between 0-60 i.e.values 1,2,......59 'in your example 30
Bill
Bookmarks