Why do you figure out time until the midnight? I thought you can specify your own _midnight_.