A month into having started the units.
Give or take a few weeks, if you realise that your lecturer is really bad/so good that you really don't need to bother purchasing.
No, this isn't a joke. Put it off. Uni textbooks are hella expensive, and often completely unnecessary.