Generalized ito and invito to work on a time interval [0,T]