Compute electrical energy in kWh, MJ or J from power and duration, and convert between the common energy units.
输入功率 P(瓦)与用电时长 t(小时),求电能(千瓦时)。