question: In May 1409, an uprising in Teutonic-held Samogitia started. Lithuania supported the uprising and the Knights threatened to invade. Poland announced its support for the Lithuanian cause and threatened to invade Prussia in return. As Prussian troops evacuated Samogitia, the Teutonic Grand Master Ulrich von Jungingen declared war on the Kingdom of Poland and Grand Duchy of Lithuania on 6 August 1409. The Knights hoped to defeat Poland and Lithuania separately and began by invading Greater Poland and Kuyavia, catching the Poles by surprise. The Knights burned the castle at Dobrin , captured Bobrowniki after a fourteen-day siege, conquered Bydgoszcz , and sacked several towns. The Poles organized counterattacks and recaptured Bydgoszcz. The Samogitians attacked Memel . However, neither side was ready for a full-scale war. Wenceslaus, King of the Romans, agreed to mediate the dispute. A truce was signed on 8 October 1409; it was set to expire on 24 June 1410. Both sides used this time for preparations for the battle, gathering the troops and engaging in diplomatic maneuvers. Both sides sent letters and envoys accusing each other of various wrongdoings and threats to Christendom. Wenceslaus, who received a gift of 60,000 florins from the Knights, declared that Samogitia rightfully belonged to the Knights and only Dobrzyń Land should be returned to Poland. The Knights also paid 300,000 ducats to Sigismund of Hungary, who had ambitions for the principality of Moldova, for his military assistance. Sigismund attempted to break the Polish-Lithuanian alliance by offering Vytautas a king's crown; Vytautas's acceptance of such a crown would violate the terms of the Ostrów Agreement and create Polish-Lithuanian discord. At the same time Vytautas managed to obtain a truce from the Livonian Order.
Answer this question: How many months did it pass from the uprising in Samogita till the truce was signed?
answer: 5

question: On November 9, 1799, Telemaque won $1500 in a city lottery. At the age of 32, he bought his freedom for $600 from Vesey. He took the surname Vesey and the given name of 'Denmark,' after the nation ruling his birthplace of St. Thomas. Denmark Vesey began working as an independent carpenter and built up his own business. By this time he had married Beck, an enslaved woman. Their children were born into slavery under the principle of partus sequitur ventrem, by which children of a slave mother took her status. Vesey worked to gain freedom for his family; he tried to buy his wife but her master would not sell her. This meant their future children would also be born into slavery. Along with many other slaves, Vesey had belonged to the Second Presbyterian church, and chafed against its restrictions on black members. In 1818 he was among founders of a congregation on what was known as the "Bethel circuit" of the African Methodist Episcopal Church . This had been organized in Philadelphia, Pennsylvania in 1816 as the first independent black denomination in the United States. The AME Church in Charleston was supported by leading white clergy. In 1818 white authorities briefly ordered the church closed, for violating slave code rules that prohibited black congregations from holding worship services after sunset. The church attracted 1848 members, making it the second largest AME church in the nation. City officials always worried about slaves in groups; they closed the church again for a time in 1821, as the City Council warned that its classes were becoming a "school for slaves" . Vesey was reported as a leader in the congregation, drawing from the Bible to project hope for freedom.
Answer this question: How many years was the church open between the first and second closings?
answer: 3

question: Until 1998, Shearer was paid $30,000 per episode. During a pay dispute in 1998, Fox threatened to replace the six main voice actors with new actors, going as far as preparing for casting of new voices. The dispute, however, was resolved and Shearer received $125,000 per episode until 2004, when the voice actors demanded that they be paid $360,000 an episode. The dispute was resolved a month later, and Shearers pay rose to $250,000 per episode. After salary re-negotiations in 2008, the voice actors received $400,000 per episode. Three years later, with Fox threatening to cancel the series unless production costs were cut, Shearer and the other cast members accepted a 30 percent pay cut, down to just over $300,000 per episode. On May 13, 2015, Shearer announced he was leaving the show. After the other voice actors signed a contract for the same pay, Shearer refused, stating it was not enough. Al Jean made a statement from the producers saying "the show must go on," but did not elaborate on what might happen to the characters Shearer voiced. On July 7, 2015, Shearer agreed to continue with the show, on the same terms as the other voice actors.
Answer this question: How many days after announcing that he was leaving the show did Shearer agree to continue on?
answer:
55