You should buy your departure flight after 3 pm, since you have to take into consideration the other transfers that you need to take before such as the ferry.