Less than a week at the start.
To be ok phisically it’s not enough, you have to keep in mind how are the markings you will find on the track, where are and how are the aid stations, what is the mandatory equipment and any other important info you need to race fully aware and enjoy yourself.
So, what are you waiting for? Watch the briefing video