A dialysis machine, wherein the dialysis machine is a peritoneal dialysis machine, wherein a peritoneal dialysis treatment, can be carried out by means of the dialysis machine in accordance with predefined and/or inputtable treatment parameters, and wherein the dialysis machine has at least one setting means by means of which at least one treatment parameter can be set during the treatment operation of the dialysis machine, wherein the dialysis machine has a planning means for planning a course of treatment and a monitoring means for monitoring the course of treatment, with it being able to be compared by means of the setting means whether an actual course of treatment corresponds to or differs from a planned course of treatment, having at least one of the following features A and B: A) at least the planned duration of treatment can be predefined by the planning means, and at least the provisional treatment duration can be calculated and/or estimated by the monitoring means with reference to the previous treatment progress, wherein a plurality of dwell times are provided during the total treatment duration whose lengths are predefinable and/or predefined and stored in the planning means and wherein a correction of at least one dwell time can be carried out by means of the setting means with reference to the calculation and/or estimation of the monitoring means of the probable treatment duration so that the planned treatment duration can be adhered to; and B) at least one planned instillation volume of dialysate can be predefined by means of the planning means, and at least the instantaneously available volume of dialysate can be calculated and/or estimated by means of the monitoring means, wherein a correction of at least one planned instillation volume and/or of all still planned instillation volumes can be carried out by means of the setting means with reference to the calculation and/or estimation of the monitoring means of the instantaneously available volume of dialysate, wherein the dialysis machine is adapted such that an available minimum bag volume of all the connected instillation solutions is known at the machine side prior to the start of the treatment in that they are identified, with the minimum bag volume resulting from a nominal bag filling volume and from a guaranteed overfilling volume that are likewise known at the machine side prior to the start of the treatment, wherein the dialysis machine is hereby adapted such that the overfilling volume is used for the machine's own consumption; and an adaptation takes place when the overfilling volume is not sufficient for the machine's own consumption. A) at least the planned duration of treatment can be predefined by the planning means, and at least the provisional treatment duration can be calculated and/or estimated by the monitoring means with reference to the previous treatment progress, wherein a plurality of dwell times are provided during the total treatment duration whose lengths are predefinable and/or predefined and stored in the planning means and wherein a correction of at least one dwell time can be carried out by means of the setting means with reference to the calculation and/or estimation of the monitoring means of the probable treatment duration so that the planned treatment duration can be adhered to; and B) at least one planned instillation volume of dialysate can be predefined by means of the planning means, and at least the instantaneously available volume of dialysate can be calculated and/or estimated by means of the monitoring means,