Add day time difference code