For your accounting purposes, it's two separate invoices...or not invoices, but it's separated so there is no timeline. If you start something on December 29 and you end it on January 3, then you're expected to properly distribute it between the two years.
On November 2nd, 2017. See this statement in context.