Compute electrical energy in kWh, MJ or J from power and duration, and convert between the common energy units.
輸入功率 P(瓦)與用電時長 t(小時),求電能(千瓦時)。