I think it should work well with good MM. Could you add the alert?
I don't know
I generally do not like the hard coded conditions - so here is a simple version which allows experimenting and the code is optimized as a first step. This way all can check what is it doing
Adjust (synchronize) your PC clock using some of the internet time servers and you will not have that time difference
Please enable the necessary setting in your browser, otherwise you will not be able to log in.