James -- Again, THANK YOU very very much for trying to help me!!!
i've been studing your example and i have to admit it is pushing my capabilities but i'm trying hard to understand.
best i can tell, the code you provided allows for the same operational time each day and doesn't take into consideration the differing operational times based upon month and day. I'm therefore speculating i need to calculate the number of minutes that makes up the operational time for first part of my schedule as follows.
May 14-24 M-Th 6:30pm-8pm, F 6:30pm-9pm, Sat 10am-9pm Sun 11am-8pm
would look something like this in the code:
var hrsOp = [];
hrsOp['may14sat'] = [192120,192780]; //min though April 30th + min in 13 days + min to 10am ..... then minutes to 9pm;
hrsOp['may15sun'] = [193620,194160]; //min though April 30th + min in 14 days + min to 11am ..... then minutes to 8pm;
hrsOp['may16mon'] = [195510,195600]; //min though April 30th + min in 15 days + min to 6:30pm ..... then minutes to 8pm;
hrsOp['may17tue'] = [196950,197040]; //min though April 30th + min in 16 days + min to 6:30pm ..... then minutes to 8pm;
hrsOp['may18wed'] = [198390,198480]; //min though April 30th + min in 17 days + min to 6:30pm ..... then minutes to 8pm;
hrsOp['may19thu'] = [199830,199920]; //min though April 30th + min in 18 days + min to 6:30pm ..... then minutes to 8pm;
hrsOp['may20fri'] = [201270,201420]; //min though April 30th + min in 19 days + min to 6:30pm ..... then minutes to 9pm;
hrsOp['may21sat'] = [202200,202860]; //min though April 30th + min in 20 days + min to 10am ..... then minutes to 9pm;
hrsOp['may22sun'] = [203700,204240]; //min though April 30th + min in 21 days + min to 11am ..... then minutes to 8pm;
hrsOp['may23mon'] = [205590,205680]; //min though April 30th + min in 22 days + min to 6:30pm ..... then minutes to 8pm;
hrsOp['may24tue'] = [207030,207120]; //min though April 30th + min in 23 days + min to 6:30pm ..... then minutes to 8pm;
based upon:
number of minutes in Jan (31) = 44640
number of minutes in Feb (28) = 40320 84960
number of minutes in Mar (31) = 44640 129600
number of minutes in Apr (30) = 43200 172800
number of minutes in May (31) = 44640 217440
number of minutes in June (30) = 43200 260640
number of minutes in a day = 1440
then i'm lost on what i need to do below in the code...
can someone tell me if i'm at least on the right track or if there is a simplier way...
i was also hoping the calculations would take place when leaving the fields instead of having to press the calculate/submit button -- can this also be done?
thanks many times over for any help anyone can provide!