$${\frac{Q}{N} = \frac{P_\text{res}}{N} = \mathrm{\frac{(0,34\, W)(20\, min)(60\, s/min)}{500}} = \underline{\underline{0,81\, \mathrm{J}}}}$$