about formula in temperature of resistor
No, there is no formula that can calculate the resistors temperature given only the resistor value, the voltage across the resistor, and time.

You need much more information for this calculation, including the ambient temperature, the thermal mass of the resistor, the rate of heat conduction through the resistor leads, and the rate of heat loss to the ambient air.