Question: when to use by then?
Answer: You name a point in time, and an event. You then use “by” to specify that the event can occur at any time before the point in time you specified, but not after.