Leave home at the start time, such as 9am. The rest is the outside world and not up to you. Maybe one day traffic will be bad or trains will be late or whatever the commute variability is. That's the employer's risk to incur by forcing office attendance. Leave at the most reasonable time you are likely to arrive home by finish time, such as 5pm.