Here is a goal: Avoid coffee effects when trying to sleep.

Which way makes more sense to accomplish this goal?
Have your last cup at noon.