function executing callback at given time using setTimeout and dates