Which factors control the cooling time of magma within the crust?

Choose one or more:
A. the rate at which heat is absorbed from the surroundings
B. surface water passing over the magma
C. the depth at which the magma cools
D. the volume of the intruded magma
E. the heat difference between the magma and the surface