Facts
The appellant, [A.X. SA] , is a company with its registered office in Montana. It owns a building that it leases to the company [B.X. SA] , its sister company, which operates it. Both companies have a financial year beginning on 1 June.
As at 31 May 2006, [B.X. SA] recorded a charge of 500'000 CHF under the heading 'premises charge'. The same amount was recorded at [A.X. SA] as income, under the heading 'restructuring contribution'. According to the expert report of 10 October 2010 from the cantonal tax authority of the canton of Valais, it was unlikely that a third party would have agreed to this waiver of debt; it was therefore an improper restructuring, not justified by commercial use, and the amount had to be added to the taxable profit of [B.X. SA] for the 2006 tax period.
By assessment decision of 11 November 2011, confirmed on objection on 30 September 2013, the cantonal tax authority included this amount in the taxable profit of [B.X. SA] . Both companies appealed to the Cantonal Tax Appeals Commission of the canton of Valais.
By merger agreement of 25 November 2013, [A.X. SA] absorbed [B.X. SA] with effect from 30 November 2013.
By decision of 17 December 2014, notified on 11 August 2015, the Appeals Commission dismissed the appeal. It held that the rent was normal and did not justify any supplement, and that [A.X. SA] was in a difficult financial situation, its banks having demanded repayment of the loans in 1999.
The appellant lodges a public law appeal before the Federal Supreme Court and requests that the decision be reformed, so that the debt waiver of 500'000 CHF be admitted as a charge and the taxable profit be reduced accordingly. The cantonal authority waived its right to respond; the Federal Tax Administration requests dismissal of the appeal.
Considerations
The Federal Supreme Court joins cases 2C_798/2015 and 2C_799/2015, the facts being identical and the legal questions overlapping (art. 71 FSCA and art. 24 FCPA). A single decision applying to direct federal tax and to cantonal and communal tax is admissible, the legal question being resolved in the same way under federal law and under harmonised cantonal law (ATF 135 II 260). [A.X. SA] has standing to appeal as universal successor of [B.X. SA] following the merger (art. 22 para. 1 MergA; art. 89 para. 1 FSCA).
Under art. 58 para. 1 let. b DFTA, withdrawals from commercial profit that do not serve to cover expenses justified by commercial use, in particular hidden distributions of profit and benefits procured for third parties, are added to the net taxable profit. Case law requires four cumulative conditions: a benefit without corresponding consideration, granted to a shareholder or to a person close to them, which would not have been granted to a third party under the same conditions, and a manifest disproportion that the organs could have noticed (ATF 140 II 88; 138 II 57; 131 II 593). Compliance with the arm's length principle is decisive (ATF 138 II 545).
In this case, the lower authority found, without the appellant being able to challenge this (art. 105 para. 1 FSCA), that the rent paid was in line with market rates and did not justify any supplement. By recording an additional 500'000 CHF as a premises…