It should take place before applying first and last effects for this turn, so basically before 400. (for the turn it has been voted, yes)