I have an equation of the temperature of the soil according to the time and the depth my question is how to introduce it in COMSOL (heat transfer in solid physics)?and how to start computing in a desired period?
If you want to simulate the process based on the defined physics in COMSOL: you can search in application libarary section to find similar problems and learn how to implement your problem.
But if your problem is that your intrested process is not defined in comsol and you want to implement your specific equation, the following video may help you:
You could also download the built models which are similar with your problem. Follows these models then you will see how to implement the equation of soil's temperature (with time and depth). In my point of view, you need to add the General Form PDE interface to employ your equation. See below figure