A non-transitory computer program product comprising a non-volatile data storage medium on which computer code is stored and which is readable by a computer, wherein the computer program code of the computer program product causes a computer to implement a method when the computer program code is executed in the computer, the method comprising driving a vehicle, wherein the vehicle comprises a control unit, a combustion engine with an output shaft, a gear box with an input shaft, an electric machine which comprises a stator and a rotor, and a planetary gear which comprises a sun wheel, a ring wheel and a planet wheel holder,
- wherein the output shaft of the combustion engine is connected to a first of the components of the planetary gear such that rotation of the output shaft leads to rotation of the first component, the input shaft of the gear box is connected to a second of the components of the planetary gear such that rotation of the input shaft leads to rotation of the second component and the rotor of the electric machine is connected to a third of the components of the planetary gear such that rotation of the rotor leads to rotation of the third component;
- the method comprising the steps of providing to the control unit access to information concerning the moment of the electric machine for driving the vehicle based on gaining knowledge of the electric energy led to or from the electric machine, calculating with the control unit the moment of the combustion engine for driving the vehicle at at least a first operation occasion when there is a known relation between the moment of the electric machine and the moment of the combustion engine based on knowledge of the moment of the electric machine, comparing the calculated moment of the combustion engine with a demanded moment of the combustion engine at the first operation occasion, storing information concerning the deviation between the calculated moment of the combustion engine and the demanded moment of the combustion engine at the first operation occasion, and using the stored information for controlling the combustion engine at a second operation occasion.