1. Think you have all the time in the world
2. Realise your mistake and start trying to think about what to write
3. Still thinking & praying
4. Eventually come up with an idea that seems to make sense and shouldn’t be too difficult or too long.
5. Realise that what you have chosen to do is far bigger than you first realised and will take much longer than you actually have time for.
6. Realise the error in your ways and work your but off.
7. Repeat steps 1-6 again next time as you never learn.

This model of writting also works with essays and pretty much everything else that needs to be done to a deadline.