Facts

The spouses [A.X.] and [B.X.] are taxpayers of the canton of Neuchâtel and parents of two children, [C.] (born 1992) and [D.] (born 1995). On 14 May 2014, the cantonal Tax Office assessed the couple for cantonal and communal tax (ICC) and direct federal tax (IFD) for the tax periods 2011 and 2012. The authority refused to recognise a carry-forward of commercial losses of CHF 400,000 claimed by [A.X.] and reduced the social deduction for dependent children.

By decision on objection of 12 December 2014, the cantonal Tax Office dismissed the objection: the taxpayer had not proved the existence of the commercial losses. For 2011, the deduction for two children was allowed but reduced to CHF 9,500 under the statutory sliding scale. For 2012, only [D.] was entitled to the deduction, [C.] not appearing in the tax return form.

On 2 February 2015, [A.X.] appealed to the Public Law Division of the Cantonal Court. He relied on an agreement concluded on 22 February 2008 between the spouses and the State of Neuchâtel (the 2008 agreement), said to settle all tax and non-tax disputes, including earlier losses, an agreement that the State had wrongly terminated. He requested an examination of the validity of this agreement and argued that his two children were in training.

By judgment of 5 October 2016, the Cantonal Court declared the appeal inadmissible for the IFD due to lateness. For the ICC, it held that the conditions for carrying forward losses were not met and that the 2008 agreement, which provided for a moratorium on enforcement, could not prevent the assessment of later periods, even assuming it was still applicable. It did not follow up on the request for an examination. For the social deduction, it confirmed the calculation for 2011 and remitted the file to the cantonal Tax Office for 2012, in order to verify whether [C.] was still in training on 31 December 2012.

The appellants, acting for themselves and for the wife, filed a public law appeal with the Federal Supreme Court, seeking annulment of the judgment and remittal of the case. They alleged a breach of the rules on the burden of proof, the allocation, contrary to their wishes, of tax payments to time-barred periods, and a breach of the principle of expedition. By order of 14 December 2016, the suspensive effect became moot, the collection proceedings having been suspended. The Cantonal Court and the cantonal Tax Office seek dismissal, and the Federal Tax Administration left the matter to the Court's assessment.

Main question: admissibility of the appeal (joinder with another case, late IFD appeal), validity of the 2008 agreement and right to an examination, allocation of tax payments and limitation, and speed of the cantonal procedure.

Considerations

The Federal Supreme Court joins cases 2C_1080/2016 (ICC) and 2C_1081/2016 (IFD), the facts being identical, and notes that the single cantonal decision covers both taxes. It leaves open the question of connection with a second cantonal judgment concerning other tax periods, since the outcome of the dispute makes it superfluous; only the complaints directed against the judgment of 5 October 2016 are examined. The appeal is admissible as a public law appeal (art. 82 let. a, 86 para. 1 let. d FSCA), the judgment being final for the IFD and materially final for the ICC 2012, the remittal leaving no margin to the tax authority. Requests for remittal are admissible, the complaints being formal, and the power to reform under art. 107 para. 2 FSCA is not excluded.

The Federal Supreme Court applies the law of its own motion (art. 106 para. 1 FSCA), but examines fundamental rights only if they are raised and substantiated (art. 106 para. 2 FSCA). It relies on the facts established (art. 105 para. 1 FSCA), unless arbitrary; appellate-style criticisms are inadmissible. Regarding the IFD, the appeal is inadmissible for lack of a complaint against the refusal to enter into the matter due to lateness (art. 42 para. 2 FSCA).

On the ICC, the validity of the 2008 agreement falls under the right to be heard (art. 29 para. 2 Cst.), which does not require the taking of evidence where the authority can, after a non-arbitrary anticipatory assessment, satisfy itself that such…