Depends entirely on the person, when I was still using Novorapid I had to take it about 20-30 mins before breakfast if I didn't want a humungous spike in my blood glucose levels (sometimes even longer if my blood sugar was higher), however if I took it 30 mins before dinner I would need to be chugging down sweets/food before that 30 mins was up
But as I say its different for everyone, it can be different at different times of the day as well