Two-period supply chain with flexible trade credit contract. (30th December 2016)