There was actually a long thread about this already, and the final answer is that it's ambiguous. If you're the one saying it, be more clear: "I want this finished by close of business tomorrow" or "I want this finished by the time I walk in tomorrow" both tell the person when the real deadline is. If you're the one hearing it, ask for clarification.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.