updated for November Bill run, script seems to be having some timezone related issue though.