Facts

The insured person, born in 1976, worked full-time as a "senior accountant" for the company [B. Sàrl] until 30 April 2015, the date of his dismissal. He suffered a total incapacity for work from 29 September 2014 and received a daily sickness benefit from the loss-of-earnings insurance (191 fr. 50 gross) until 22 April 2015.

By decision of 30 March 2015, the Jura Disability Insurance Office (IV office) ordered a work retraining measure in the fiduciary field. From 23 April 2015 to 31 January 2016, the insured person received a daily IV benefit of 170 fr. 40, calculated on a determinant annual salary of 77'662 fr. By decision of 11 April 2016, the IV office noted the success of the measures and denied the right to a pension, the degree of loss of earning capacity being 10.01%.

The insured person applied for unemployment benefits from 1 February 2016, fit and willing to work full-time, his treating physician certifying a full work capacity. By decision of 31 March 2016, the UNIA unemployment fund set the insured earnings at 4'955 fr. from 1 February 2016, after a 10% reduction taking into account the disability rate of 10.01%. On objection, UNIA partially upheld the appeal by decision of 21 September 2016: insured earnings of 5'699 fr. from 1 February 2016, then a 10% reduction from 1 May 2016 (i.e. 5'129 fr.).

Seized by the insured person, the Insurance Court of the Jura Cantonal Court, by judgment of 17 October 2017, partially upheld the appeal: insured earnings of 5'699 fr. from 1 February 2016, without the 10% reduction from 1 May 2016, and a costs award of 900 fr. payable by the fund.

The insured person seeks insured earnings of 7'174 fr. 60 from 1 February 2016 and full cantonal costs (3'065 fr. 05). UNIA appeals to restore the 10% reduction from 1 May 2016. The State Secretariat for Economic Affairs waived submitting observations. The two appeals were joined (8C_821/2017 and 8C_825/2017).

Dispute: the amount of insured earnings determinant for unemployment benefits from 1 February 2016, and in particular whether those earnings must be reduced due to a decrease in earning capacity resulting from the impairment of health.

Considerations

Admissibility: the appeals are directed against a final judgment (art. 90 FSCA) rendered in public law matters by a cantonal authority of last instance (art. 86 para. 1 let. d FSCA); filed within the legal time limits and form, they are admissible. The cases are joined because of their connection (art. 71 FSCA in conjunction with art. 24 APA).

Legal framework: under art. 13 para. 2 let. c UIA, time during which the insured person remains party to an employment relationship without receiving wages (illness, accident) counts as a contribution period. The insured earnings (art. 23 para. 1 UIA) are the determinant salary normally obtained; art. 37 UIO sets the reference period (six or twelve months according to the higher amount), and art. 39 UIO provides, for assimilated periods, the salary the insured person would normally have obtained. According to art. 40b UIO, for persons whose work capacity was impaired during unemployment or immediately before, the determinant earnings are those they could obtain taking into account their effective ability to earn a living.

On the complaint of unequal treatment (art. 8 Cst.) raised by the insured person concerning the application of art. 39 UIO to the period from 1 May 2015 to 31 January 2016: the Federal Supreme Court rejects it. The situation of an insured person whose employer has not terminated the contract and who receives sickness or accident benefits is not comparable to that of an insured person who receives IV benefits. Sickness and accident benefits are not subject to contributions, unlike IV benefits (art. 25 para. 1 let. d InvIA; art. 3 para. 1 UIA in conjunction with art. 6 para. 2 let. b OASIO). The coordination provided for in art. 13 para. 2 let. c UIA and 39 UIO presupposes that the insured person is party to an employment contract, which is not the case here. The cantonal court therefore did not violate federal law in retaining the amount of 170 fr. 40 per calendar day of disability insurance for this period.

On the 10% reduction (art. 40b UIO): the Federal Supreme Court adopts the fund's point of view. The determinant element is the decrease in earning capacity, regardless of work capacity at the time of unemployment. The respondent has not invoked any objective element calling into question the IV office's finding of a 10% loss of earning capacity. The disability income within the…