(1) If a lessee has made necessary expenditures relating to the preservation of the object leased he may demand reimbursement thereof from the lesson.
(2) If the lessee has made any useful expenditures, the lessor shall reimburse the lessee, to the extent that the increase in value remains subsisting at the time when the lease terminates, in the amount disbursed by the lessee or the amount by which the value of the object has been increased. In such a case, the court may, upon the application of the lessor, allow him or her reasonable time for settlement with the lessee.