Device comprising - an input unit - a control and calculation unit and - an output unit wherein the control and calculation unit is configured to trigger the input unit to receive the following input information: - crop plant being grown, - crop protection product used, - number of applications of the crop protection product and amounts applied each time, - periods of time between the application(s) and harvesting time, - information relating to the biomass of the crop plant that was present on each application of the crop protection product, - environmental conditions during the growing of the crop plant, especially on and/or after the application(s) of the crop protection product, wherein the control and calculation unit is configured to calculate an amount of a residue of the crop protection product in and/or on the parts of the crop plant intended for human and/or animal consumption at the harvesting time of the crop plant, using the input information, wherein the control and calculation unit is configured to trigger the output unit to output information relating to the amount of residue, wherein the amount of residue is calculated on the basis of a mathematical function relationship, wherein the mathematical function relationship describes the degradation of the crop protection product as a function of time, wherein the mathematical function equation has at least one parameter, wherein the at least one parameter is calculated with the aid of a machine learning model on the basis of input information. - an input unit - a control and calculation unit and - an output unit wherein the control and calculation unit is configured to trigger the input unit to receive the following input information: - crop plant being grown, - crop protection product used, - number of applications of the crop protection product and amounts applied each time, - periods of time between the application(s) and harvesting time, - information relating to the biomass of the crop plant that was present on each application of the crop protection product, - environmental conditions during the growing of the crop plant, especially on and/or after the application(s) of the crop protection product, - crop plant being grown, - crop protection product used, - number of applications of the crop protection product and amounts applied each time, - periods of time between the application(s) and harvesting time, - information relating to the biomass of the crop plant that was present on each application of the crop protection product, - environmental conditions during the growing of the crop plant, especially on and/or after the application(s) of the crop protection product, wherein the control and calculation unit is configured to calculate an amount of a residue of the crop protection product in and/or on the parts of the crop plant intended for human and/or animal consumption at the harvesting time of the crop plant, using the input information, wherein the control and calculation unit is configured to trigger the output unit to output information relating to the amount of residue, wherein the amount of residue is calculated on the basis of a mathematical function relationship, wherein the mathematical function relationship describes the degradation of the crop protection product as a function of time, wherein the mathematical function equation has at least one parameter, wherein the at least one parameter is calculated with the aid of a machine learning model on the basis of input information.