W=Pt=UIt=U^2t/R=I^2Rt